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
This commit is contained in:
François Revol
2006-05-30 15:03:02 +00:00
parent 974533ab5a
commit f428e7ad4a
+1 -2
View File
@@ -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;