Hello.
Here’s a simplified and isolated case of what’s happening in my UI setup:
panel fixed aspect bug.toe (19.1 KB)
I have an unfixed size “viewport” area (yellow border), that holds a fixed aspect ratio “view area” component (cyan border), that is set to “fit best” by its parent “viewport”. The “view area” is set to fill on one dimension, which is also used in “fixed aspect” parameter.
In addition, there are additional self aligned components in the “viewport” such a that toggle button anchored to the top in this example, but the bug happens regardless of these.
Finally, inside the “viewport”, I have drag-able elements and pop up panels such as that red square.
In terms of initial layout, it works as expected. However, upon interacting I’ve been getting these annoying shifts in layout, that you can see in the gif. Resizing the whole “viewport” window triggers it, or seemingly any more advanced interaction such as a hover over a widget.
It seems this is all tied to “fixed Aspect” functionality an the way I am using it with “fit best”. Whilst trying to debug this and inspecting some of the child elements in my setup (such as that red rectangle), they were seemingly changing their screenw
, screenh
, screenwm
, screenhm
upon me hovering over other areas of my UI.
So afaik this is a bug. And I’d gladly hear suggestions for workarounds meanwhile (to allow this kind of hierarchy and layout).
Thanks!