1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:07:35 +00:00

ImageViewer: Don't resize the window after the first image is displayed

This commit is contained in:
Aziz Berkay Yesilyurt 2021-07-09 00:57:42 +02:00 committed by Andreas Kling
parent 36c8b1c58c
commit dd476c35cb
2 changed files with 5 additions and 1 deletions

View file

@ -32,6 +32,8 @@ public:
int scale() { return m_scale; }
void set_toolbar_height(int height) { m_toolbar_height = height; }
int toolbar_height() { return m_toolbar_height; }
bool scaled_for_first_image() { return m_scaled_for_first_image; }
void set_scaled_for_first_image(bool val) { m_scaled_for_first_image = val; }
void clear();
void flip(Gfx::Orientation);
@ -73,6 +75,7 @@ private:
int m_scale { -1 };
int m_toolbar_height { 28 };
bool m_scaled_for_first_image { false };
Gfx::FloatPoint m_pan_origin;
Gfx::IntPoint m_click_position;
Gfx::FloatPoint m_saved_pan_origin;