mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user