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

LibWeb: Implement auto-fill and auto-fit

Implement auto-fill and auto-fit for the grid, which allow for placing
as many columns as will fit within a given container size.
This commit is contained in:
martinfalisse 2022-10-15 13:21:43 +02:00 committed by Andreas Kling
parent 4745a0c20a
commit 53f3df78e5
3 changed files with 135 additions and 1 deletions

View file

@ -35,6 +35,9 @@ private:
Vector<GridTrack> m_grid_rows;
Vector<GridTrack> m_grid_columns;
float get_free_space_x(Box const&);
float get_free_space_y(Box const&);
};
class OccupationGrid {