mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:57:45 +00:00
LibWeb: Fix flex line alignment in single-line flex containers
For single-line flex containers, center the only flex line along the cross axis. Alignment of multi-line flex containers are left as a FIXME. This patch also moves out the assignment of final metrics to the FormattingState from align_all_flex_lines() to a separate function.
This commit is contained in:
parent
1dfb3d555c
commit
a3a10b2379
2 changed files with 20 additions and 9 deletions
|
@ -81,6 +81,7 @@ private:
|
|||
void set_main_axis_second_margin(Box const&, float margin);
|
||||
|
||||
void setup_initial_width_and_height();
|
||||
void copy_dimensions_from_flex_items_to_boxes();
|
||||
|
||||
void generate_anonymous_flex_items();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue