You might have encountered some Weird Layout behaviours or unseen overflowed layouts which cant be seen with our eyes unless you inspect like the picture below. After adding my script you just have to press the shift
key , and you will be able to see all the guidlines colored in red and able to see the overflowed layouts in your UI.
Before Adding The Script:
After Adding The Script:
The Js Script: Note(Press the
SHIFT
key to see the changes)