summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/CommandPalette.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibGUI/CommandPalette.cpp')
-rw-r--r--Userland/Libraries/LibGUI/CommandPalette.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGUI/CommandPalette.cpp b/Userland/Libraries/LibGUI/CommandPalette.cpp
index 2d2ad31f7d..4bf7c9c5db 100644
--- a/Userland/Libraries/LibGUI/CommandPalette.cpp
+++ b/Userland/Libraries/LibGUI/CommandPalette.cpp
@@ -186,8 +186,7 @@ CommandPalette::CommandPalette(GUI::Window& parent_window, ScreenPosition screen
main_widget->set_frame_shape(Gfx::FrameShape::Window);
main_widget->set_fill_with_background_color(true);
- auto& layout = main_widget->set_layout<GUI::VerticalBoxLayout>();
- layout.set_margins(4);
+ main_widget->set_layout<GUI::VerticalBoxLayout>(4);
m_text_box = main_widget->add<GUI::TextBox>();
m_table_view = main_widget->add<GUI::TableView>();