mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:17:45 +00:00
Magnifier: Prevent 0 size that otherwise hangs
This commit is contained in:
parent
808eafcf1e
commit
9e0deb76b2
2 changed files with 10 additions and 0 deletions
|
@ -36,6 +36,11 @@ public:
|
|||
void display_next_frame();
|
||||
RefPtr<Gfx::Bitmap> current_bitmap() const { return m_grabbed_bitmap; };
|
||||
|
||||
virtual Optional<GUI::UISize> calculated_min_size() const override
|
||||
{
|
||||
return GUI::UISize { frame_thickness() * 2 + m_scale_factor, frame_thickness() * 2 + m_scale_factor };
|
||||
}
|
||||
|
||||
private:
|
||||
MagnifierWidget();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue