From f8570b7199c68c21c578680f51192c106b5da4c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Tue, 28 Jun 2005 00:34:51 +0000 Subject: [PATCH] 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 --- src/servers/app/DefaultDecorator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/servers/app/DefaultDecorator.cpp b/src/servers/app/DefaultDecorator.cpp index 98828fe1c7..79f23642ed 100644 --- a/src/servers/app/DefaultDecorator.cpp +++ b/src/servers/app/DefaultDecorator.cpp @@ -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); }