mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:37:35 +00: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:
parent
38d9c4d19c
commit
0160d921e9
6 changed files with 28 additions and 37 deletions
|
@ -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 {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue