summaryrefslogtreecommitdiff
path: root/alf/alfnotebook.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'alf/alfnotebook.cpp')
-rw-r--r--alf/alfnotebook.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/alf/alfnotebook.cpp b/alf/alfnotebook.cpp
index 6ffbe5d..342bd92 100644
--- a/alf/alfnotebook.cpp
+++ b/alf/alfnotebook.cpp
@@ -379,11 +379,11 @@ ALF__NotebookWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
TabCtrl_AdjustRect(priv->hwndTabCtrl, TRUE, &r);
SIZE *ps = (SIZE*)lParam;
- if (!ps->cx) {
+ if (ps->cx < r.right - r.left) {
ps->cx = r.right - r.left;
}
- if (!ps->cy) {
+ if (ps->cy < r.bottom - r.top) {
ps->cy = r.bottom - r.top;
}