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:
@@ -168,7 +168,7 @@ DefaultDecorator::GetSizeLimits(float* minWidth, float* minHeight,
|
|||||||
float* maxWidth, float* maxHeight) const
|
float* maxWidth, float* maxHeight) const
|
||||||
{
|
{
|
||||||
if (_tabrect.IsValid())
|
if (_tabrect.IsValid())
|
||||||
*minWidth = max_c(*minWidth, fMinTabWidth);
|
*minWidth = max_c(*minWidth, fMinTabWidth - 2 * fBorderWidth);
|
||||||
if (_resizerect.IsValid())
|
if (_resizerect.IsValid())
|
||||||
*minHeight = max_c(*minHeight, _resizerect.Height() - fBorderWidth);
|
*minHeight = max_c(*minHeight, _resizerect.Height() - fBorderWidth);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user