The problems with layouts #6058
Replies: 5 comments 13 replies
-
It seems that modified_children dirty is not set after removing child. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
In layout algorithm, Is it intentional that those two arguments are separated? If so, what is the reason for that? |
Beta Was this translation helpful? Give feedback.
-
I have some issues with current behavior of Right now, this prevents me from placing dropdowns within the widget view, as they move the node's contents up when they open. The way this is implemented, documented and tested, all of this behaviour seems to be very intentional. @wdanilo could you explain why it's done that way? Or is it just accidental oversight? If it makes sense, I would like to change that behavior, so that the let forced_origin_alignment = self.layout.forced_origin_alignment.get().get_dim(x);
let origin_shift = forced_origin_alignment.normalized() * self_size;
let origin_base = if hug_children { min_x } else { 0.0 };
self.layout.content_origin.set_dim(x, origin_base - origin_shift); Also I think that current handling of |
Beta Was this translation helpful? Give feedback.
-
@farmaazon @Frizi I believe the problems are resolved, can we close it? |
Beta Was this translation helpful? Give feedback.
-
I discovered a problem with layouts when adding and removing children from a display object. This test fails:
On first resize after removing child.
For information of @wdanilo and @Frizi as they also are about to use a lot of layouts.
Beta Was this translation helpful? Give feedback.
All reactions