Преглед изворни кода

LibWeb: Fix condition to determine auto tracks while sizing in GFC

This solves the issue when track with "fixed" min sizing function were
treated like "auto" during sizing.
Aliaksandr Kalenik пре 2 година
родитељ
комит
d0ce61bf13
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      Userland/Libraries/LibWeb/Layout/GridFormattingContext.cpp

+ 1 - 1
Userland/Libraries/LibWeb/Layout/GridFormattingContext.cpp

@@ -760,7 +760,7 @@ void GridFormattingContext::resolve_intrinsic_track_sizes(GridDimension const di
                     }
                     track.base_size = base_size;
                 }
-            } else {
+            } else if (track.min_track_sizing_function.is_auto()) {
                 // Otherwise, set the track’s base size to the maximum of its items’ minimum contributions, floored
                 // at zero. The minimum contribution of an item is the smallest outer size it can have.
                 // Specifically, if the item’s computed preferred size behaves as auto or depends on the size of its