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:
parent
063f418c53
commit
f8570b7199
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue