From 77ad0fdb0726aba2ecaf7ea9764a642671d1fd6f Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Thu, 16 Feb 2023 21:07:06 +0000 Subject: Userland: Specify margins and spacing in the GUI::Layout constructor --- Userland/Applications/ImageViewer/MainWidget.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Userland/Applications/ImageViewer') diff --git a/Userland/Applications/ImageViewer/MainWidget.cpp b/Userland/Applications/ImageViewer/MainWidget.cpp index 70b04f33c0..a585288c49 100644 --- a/Userland/Applications/ImageViewer/MainWidget.cpp +++ b/Userland/Applications/ImageViewer/MainWidget.cpp @@ -11,8 +11,7 @@ namespace ImageViewer { MainWidget::MainWidget() { set_fill_with_background_color(true); - set_layout(); - layout()->set_spacing(2); + set_layout(GUI::Margins {}, 2); } void MainWidget::keydown_event(GUI::KeyEvent& event) -- cgit v1.2.3