1
Fork 0
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:
Andreas Kling 2022-02-27 23:58:54 +01:00
parent 1dfb3d555c
commit a3a10b2379
2 changed files with 20 additions and 9 deletions

View file

@ -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();