mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +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:
parent
f890f8529a
commit
d38d03ce28
Notes:
sideshowbarker
2024-07-18 04:13:57 +09:00
Author: https://github.com/mustafaquraish Commit: https://github.com/SerenityOS/serenity/commit/d38d03ce28f Pull-request: https://github.com/SerenityOS/serenity/pull/9974 Issue: https://github.com/SerenityOS/serenity/issues/9971 Reviewed-by: https://github.com/Granddave ✅ Reviewed-by: https://github.com/TobyAsE
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue