- edited description
Position of child not updated if another child changes size
Assume there is a RamRectangleComponent
with several children in a vertical layout.
Let a and b be the children of index 1 and 2.
If a changes its size (or just the height) and directly after, b wants to know its global or relative position, it will get the old (not updated) position.
However, the UI will look correctly. Just the position is not updated right away (maybe at a later point).
Comments (3)
-
reporter -
- changed status to resolved
Issue resolved by the new layout system introduced in the issue
#110. -
reporter Resolved issue
#111: Fixed problem where the position of a child of a component was not updated if another child changed its size.The problem is that the matrices that store the position (global matrix) is not updated.
Now, whenever a component changes its size, the parent is now informed. This will trigger a re-layout and force the positions to be updated.
→ <<cset b3701845adaa>>
- Log in to comment