mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
PixelPaint: Relayout ImageEditor immediately when image rect changes
This avoids a jarring effect where we'd "snap" the image into place upon the next resize event.
This commit is contained in:
parent
d7cf36ec6c
commit
4491ef8ae6
Notes:
sideshowbarker
2024-07-18 02:47:59 +09:00
Author: https://github.com/awesomekling
Commit: 4491ef8ae6
1 changed files with 1 additions and 0 deletions
|
@ -551,6 +551,7 @@ void ImageEditor::image_did_change_rect(Gfx::IntRect const& new_image_rect)
|
|||
{
|
||||
set_original_rect(new_image_rect);
|
||||
set_content_rect(new_image_rect);
|
||||
relayout();
|
||||
}
|
||||
|
||||
void ImageEditor::image_select_layer(Layer* layer)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue