1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:47:36 +00:00

PixelPaint: Fit image to view when opened

When opening a file, make it fit on the screen. I think this is
sensible default behaviour.
This commit is contained in:
Mustafa Quraish 2021-09-11 14:36:24 -04:00 committed by Andreas Kling
parent f890f8529a
commit d38d03ce28

View file

@ -812,6 +812,7 @@ ImageEditor& MainWidget::create_new_editor(NonnullRefPtr<Image> image)
m_tab_widget->set_active_widget(&image_editor);
image_editor.set_focus(true);
image_editor.fit_image_to_view();
return image_editor;
}