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;