Grid inner rectangles offset (GUI Editor/Grid)

Hi all.

I discovered this thing with nested rectangles in a grid.

For some reason, the green (inner) rectangle shifts slightly to the left and then down. Inner grid always 90% width and height. Red rectangle always 100% width and height.

I am attaching screenshots

Grid 200x100 px

Grid 40%x25%

General screenshot. Here the red rectangles are internal. Sizes the same
main_bug

Hello! Can you share a GUI snippet with the problem?

Of course!

W2QHYW

Thanks for the snippet! After some digging about with @RaananW , we think this may have to do with rounding, so I opened an issue for us to investigate more deeply: Investigate GUI rounding · Issue #14444 · BabylonJS/Babylon.js (github.com)

2 Likes

Hey sorry for the necroposting but can you share a repro in the PG?