1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:38:11 +00:00

LibGUI: Tweak FilePicker layout to remove bottom padding

This makes the "Cancel" and "Open" buttons align with the right sidebar's
bottom edge.
This commit is contained in:
Linus Groh 2020-06-30 09:06:10 +01:00 committed by Andreas Kling
parent 167da1fa84
commit 6b61d4656f

View file

@ -171,7 +171,7 @@ FilePicker::FilePicker(Mode mode, const StringView& file_name, const StringView&
lower_container.set_layout<VerticalBoxLayout>();
lower_container.layout()->set_spacing(4);
lower_container.set_size_policy(SizePolicy::Fill, SizePolicy::Fixed);
lower_container.set_preferred_size(0, 60);
lower_container.set_preferred_size(0, 45);
auto& filename_container = lower_container.add<Widget>();
filename_container.set_size_policy(SizePolicy::Fill, SizePolicy::Fixed);