From d38d03ce28f0aa2a0f1549a1a6db34f758abf463 Mon Sep 17 00:00:00 2001 From: Mustafa Quraish Date: Sat, 11 Sep 2021 14:36:24 -0400 Subject: [PATCH] PixelPaint: Fit image to view when opened When opening a file, make it fit on the screen. I think this is sensible default behaviour. --- Userland/Applications/PixelPaint/MainWidget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Applications/PixelPaint/MainWidget.cpp b/Userland/Applications/PixelPaint/MainWidget.cpp index fe2f1c44ece..144f0f71ee7 100644 --- a/Userland/Applications/PixelPaint/MainWidget.cpp +++ b/Userland/Applications/PixelPaint/MainWidget.cpp @@ -812,6 +812,7 @@ ImageEditor& MainWidget::create_new_editor(NonnullRefPtr image) m_tab_widget->set_active_widget(&image_editor); image_editor.set_focus(true); + image_editor.fit_image_to_view(); return image_editor; }