diff --git a/deps/PawPaw b/deps/PawPaw index 3ce181e..bafa29d 160000 --- a/deps/PawPaw +++ b/deps/PawPaw @@ -1 +1 @@ -Subproject commit 3ce181e48506ef6d14b6e256af98801e58119415 +Subproject commit bafa29de39d8dd755c01a1a0b853e4cf5d4fc10c diff --git a/src/ResizeHandle.hpp b/src/ResizeHandle.hpp index 9fce9bb..3b42028 100644 --- a/src/ResizeHandle.hpp +++ b/src/ResizeHandle.hpp @@ -96,17 +96,18 @@ protected: resizingSize += offset; lastResizePoint = ev.pos; - // TODO min width, min height - const uint minWidth = 16; - const uint minHeight = 16; + const double scaleFactor = getScaleFactor(); + const uint minWidth = 648 * scaleFactor; + const uint minHeight = 538 * scaleFactor; if (resizingSize.getWidth() < minWidth) resizingSize.setWidth(minWidth); - if (resizingSize.getWidth() > 16384) + else if (resizingSize.getWidth() > 16384) resizingSize.setWidth(16384); + if (resizingSize.getHeight() < minHeight) resizingSize.setHeight(minHeight); - if (resizingSize.getHeight() > 16384) + else if (resizingSize.getHeight() > 16384) resizingSize.setHeight(16384); setSize(resizingSize.getWidth(), resizingSize.getHeight());