From a21cfee7f46588c949b82ab1b2400290e68bbeee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sun, 15 Feb 2009 15:02:37 +0000 Subject: [PATCH] Do not let layout the resize rect for borderless windows or one pixel border windows. This would influence the window size constraints for no reason and would for example affect menu windows (one item menus or empty menus would be forced to be too tall because of this bug). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29212 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/DefaultDecorator.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/servers/app/DefaultDecorator.cpp b/src/servers/app/DefaultDecorator.cpp index 8ab6d44777..9b724a4933 100644 --- a/src/servers/app/DefaultDecorator.cpp +++ b/src/servers/app/DefaultDecorator.cpp @@ -715,8 +715,14 @@ DefaultDecorator::_DoLayout() } // calculate resize rect - fResizeRect.Set(fBottomBorder.right - 18.0, fBottomBorder.bottom - 18.0, - fBottomBorder.right, fBottomBorder.bottom); + if (fBorderWidth > 1) { + fResizeRect.Set(fBottomBorder.right - 18.0, + fBottomBorder.bottom - 18.0, fBottomBorder.right, + fBottomBorder.bottom); + } else { + // no border or one pixel border (menus and such) + fResizeRect.Set(0, 0, -1, -1); + } if (hasTab) { // make sure fTabOffset is within limits and apply it to