mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:07:35 +00:00
LibWeb: Treat unresolvable percentages as auto to resolve sizes in GFC
Fixes the bug that currently we always consider tracks with percentage size as ones with "fixed" length even when available size is not definite. With this change tracks with percentage size when available size is not definite will be considered as "intrinsic" sized.
This commit is contained in:
parent
30feb95d53
commit
537256fae2
6 changed files with 73 additions and 58 deletions
|
@ -201,6 +201,8 @@ private:
|
|||
Vector<GridItem> m_grid_items;
|
||||
Vector<JS::NonnullGCPtr<Box const>> m_boxes_to_place;
|
||||
|
||||
Optional<AvailableSpace> m_available_space;
|
||||
|
||||
void determine_grid_container_height();
|
||||
void determine_intrinsic_size_of_grid_container(AvailableSpace const& available_space);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue