From f428e7ad4a25102d97fe9de589bf7bec57f6ff88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Tue, 30 May 2006 15:03:02 +0000 Subject: [PATCH] Don't use a tab size that we might just later enlarge when calculating maxTabPos... Fixes bug #643 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17653 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/DefaultDecorator.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/servers/app/DefaultDecorator.cpp b/src/servers/app/DefaultDecorator.cpp index 27450b200e..165b59c0a1 100644 --- a/src/servers/app/DefaultDecorator.cpp +++ b/src/servers/app/DefaultDecorator.cpp @@ -314,11 +314,10 @@ DefaultDecorator::ResizeBy(BPoint pt, BRegion* dirty) float maxLocation; if (fLook != kLeftTitledWindowLook) { tabSize = fRightBorder.right - fLeftBorder.left; - maxLocation = tabSize - _tabrect.Width(); } else { tabSize = fBottomBorder.bottom - fTopBorder.top; - maxLocation = tabSize - _tabrect.Height(); } + maxLocation = tabSize - fMaxTabSize; if (maxLocation < 0) maxLocation = 0;