mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 23:58:11 +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
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