Position of child not updated if another child changes size

Issue #111 resolved
Matthias Schoettle created an issue

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)

  1. Matthias Schoettle 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>>

  2. Log in to comment