mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 01:29:17 +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:
parent
4745a0c20a
commit
53f3df78e5
Notes:
sideshowbarker
2024-07-17 20:58:35 +09:00
Author: https://github.com/martinfalisse
Commit: 53f3df78e5
Pull-request: https://github.com/SerenityOS/serenity/pull/15612
Reviewed-by: https://github.com/awesomekling ✅
3 changed files with 135 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue