substract the border width from minSize, as that is the inner width of the window

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13298 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2005-06-28 00:34:51 +00:00
parent 063f418c53
commit f8570b7199
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ DefaultDecorator::GetSizeLimits(float* minWidth, float* minHeight,
float* maxWidth, float* maxHeight) const
{
if (_tabrect.IsValid())
*minWidth = max_c(*minWidth, fMinTabWidth);
*minWidth = max_c(*minWidth, fMinTabWidth - 2 * fBorderWidth);
if (_resizerect.IsValid())
*minHeight = max_c(*minHeight, _resizerect.Height() - fBorderWidth);
}