mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:07:34 +00:00
LibWeb: Flexbox: Use maximum size of container as available size
This previously wouldn't work well with flex-grow.
This commit is contained in:
parent
edbc5489a8
commit
79c2762a0d
1 changed files with 1 additions and 0 deletions
|
@ -269,6 +269,7 @@ void FlexFormattingContext::run(Box& box, LayoutMode)
|
||||||
} else {
|
} else {
|
||||||
if (has_main_max_size(box)) {
|
if (has_main_max_size(box)) {
|
||||||
main_max_size = specified_main_max_size(box);
|
main_max_size = specified_main_max_size(box);
|
||||||
|
main_available_size = main_max_size;
|
||||||
main_is_constrained = true;
|
main_is_constrained = true;
|
||||||
}
|
}
|
||||||
if (has_main_min_size(box)) {
|
if (has_main_min_size(box)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue