1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:37:43 +00:00

LibWeb: Reset planned_increase while distributing space to "fr" tracks

Fixes bug when planned_increase is not reset after adding it to
base_size.
This commit is contained in:
Aliaksandr Kalenik 2023-08-03 16:21:53 +02:00 committed by Andreas Kling
parent f0a5276063
commit 1e953f2acc
3 changed files with 41 additions and 0 deletions

View file

@ -1057,6 +1057,7 @@ void GridFormattingContext::increase_sizes_to_accommodate_spanning_items_crossin
for (auto& track : spanned_tracks) {
track.base_size += track.planned_increase;
track.planned_increase = 0;
}
// 4. If at this point any tracks growth limit is now less than its base size, increase its growth limit to