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:
@@ -314,11 +314,10 @@ DefaultDecorator::ResizeBy(BPoint pt, BRegion* dirty)
|
|||||||
float maxLocation;
|
float maxLocation;
|
||||||
if (fLook != kLeftTitledWindowLook) {
|
if (fLook != kLeftTitledWindowLook) {
|
||||||
tabSize = fRightBorder.right - fLeftBorder.left;
|
tabSize = fRightBorder.right - fLeftBorder.left;
|
||||||
maxLocation = tabSize - _tabrect.Width();
|
|
||||||
} else {
|
} else {
|
||||||
tabSize = fBottomBorder.bottom - fTopBorder.top;
|
tabSize = fBottomBorder.bottom - fTopBorder.top;
|
||||||
maxLocation = tabSize - _tabrect.Height();
|
|
||||||
}
|
}
|
||||||
|
maxLocation = tabSize - fMaxTabSize;
|
||||||
if (maxLocation < 0)
|
if (maxLocation < 0)
|
||||||
maxLocation = 0;
|
maxLocation = 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user