diff options
author | Mart G <martg_@hotmail.com> | 2021-05-29 11:30:51 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-29 15:50:04 +0200 |
commit | 07e3934f013d9ede4885534973e4fb13e032c517 (patch) | |
tree | 9f4378a19e21fe493f567a6c975a8b353162d960 /Userland/Libraries/LibGUI/CommonLocationsProvider.cpp | |
parent | 77f9f442d80027b7ebff595e8147d70c84e5efae (diff) | |
download | serenity-07e3934f013d9ede4885534973e4fb13e032c517.zip |
LibGUI: Distribute remaining pixels in BoxLayout to fill the entire area
Previously, the layout algorithm preferred to give every item an equally
sized slice of the remaining space. This meant that not the entire area
was used when the remaining size did not divide evenly by the number of
items. This caused, for example, the ResizeCorner in HexEditor to be a
couple of pixels left of the actual corner for some sizes of the window.
Now, the remaining pixels are distributed on a first come, first served
basis. However, only one pixel is distributed at a time. This means
items towards the left might me a pixel larger than their siblings
towards the right.
Diffstat (limited to 'Userland/Libraries/LibGUI/CommonLocationsProvider.cpp')
0 files changed, 0 insertions, 0 deletions