1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 18:20:43 +09:00

LibWeb: Set children of button layout box to be non-inline

When modifying the button layout during tree building to use flex for
vertical alignment, let's explicitly set the button box's children to
be non-inline. It doesn't make sense to layout the button as an IFC
when its only child is a flex container.
This commit is contained in:
Aliaksandr Kalenik 2023-09-10 22:14:25 +02:00 committed by Andreas Kling
parent 38d9c4d19c
commit 0160d921e9
Notes: sideshowbarker 2024-07-17 11:34:34 +09:00
6 changed files with 28 additions and 37 deletions

View file

@ -411,6 +411,7 @@ ErrorOr<void> TreeBuilder::create_layout_tree(DOM::Node& dom_node, TreeBuilder::
flex_wrapper->append_child(*content_box_wrapper);
parent.append_child(*flex_wrapper);
parent.set_children_are_inline(false);
}
return {};