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:
parent
38d9c4d19c
commit
0160d921e9
Notes:
sideshowbarker
2024-07-17 11:34:34 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: 0160d921e9
Pull-request: https://github.com/SerenityOS/serenity/pull/21019
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