aboutsummaryrefslogtreecommitdiff
path: root/c/layout.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c/layout.cpp')
-rw-r--r--c/layout.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/c/layout.cpp b/c/layout.cpp
index 77aa88e..de1f1f7 100644
--- a/c/layout.cpp
+++ b/c/layout.cpp
@@ -55,6 +55,9 @@ void Dragger::Drag(const int, const int y)
{
RECT rrDlv;
require(GetRelativeRect(g_dlv->hWnd, &rrDlv));
+
+ if (y < Dpi(50) || y > rrDlv.bottom-Dpi(20)) return;
+
int h;
h = rrDlv.bottom-y;
g_dlv->SetHeight(h);