mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 12:49:08 +00:00
LibWeb: Include padding+border in shrink-to-fit preferred min width
This commit is contained in:
@@ -96,7 +96,7 @@ static float greatest_child_width(const Box& box)
|
||||
}
|
||||
} else {
|
||||
box.for_each_child_of_type<Box>([&](auto& child) {
|
||||
max_width = max(max_width, child.width());
|
||||
max_width = max(max_width, child.border_box_width());
|
||||
});
|
||||
}
|
||||
return max_width;
|
||||
|
||||
Reference in New Issue
Block a user