mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:48:12 +00:00
LibWeb: Skip frozen tracks while distributing space in GFC
This commit is contained in:
parent
a613a0973e
commit
2d05c63c7c
1 changed files with 3 additions and 0 deletions
|
@ -895,6 +895,9 @@ void GridFormattingContext::distribute_extra_space_across_spanned_tracks(CSSPixe
|
|||
// increase reaches its limit
|
||||
CSSPixels increase_per_track = extra_space / spanned_tracks.size();
|
||||
for (auto& track : spanned_tracks) {
|
||||
if (track.frozen)
|
||||
continue;
|
||||
|
||||
if (increase_per_track >= track.growth_limit) {
|
||||
track.frozen = true;
|
||||
track.item_incurred_increase = track.growth_limit;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue