From 4491ef8ae68945f9a94f09ce321f206b9bea4498 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 22 Aug 2022 19:11:08 +0200 Subject: [PATCH] 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. --- Userland/Applications/PixelPaint/ImageEditor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Applications/PixelPaint/ImageEditor.cpp b/Userland/Applications/PixelPaint/ImageEditor.cpp index 57d58f9ef2..e3db66dc17 100644 --- a/Userland/Applications/PixelPaint/ImageEditor.cpp +++ b/Userland/Applications/PixelPaint/ImageEditor.cpp @@ -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)