From a0d69d7dac0681637b0bf9b5bb1eff0c3756fc6d Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Sun, 26 Oct 2008 10:53:13 +0000 Subject: [PATCH] Also add the border overlap on both sides to the available space of the initial tab width. This fixes the initially wrong tab width for windows where the title does not fit and previously there would be 10 pixels waste on the right. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28331 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/DefaultDecorator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/servers/app/DefaultDecorator.cpp b/src/servers/app/DefaultDecorator.cpp index 028c184790..b4423bc01d 100644 --- a/src/servers/app/DefaultDecorator.cpp +++ b/src/servers/app/DefaultDecorator.cpp @@ -674,8 +674,8 @@ DefaultDecorator::_DoLayout() fMaxTabSize += fTextOffset; fMaxTabSize += fMinTabSize; - float tabSize = fLook != kLeftTitledWindowLook - ? fFrame.Width() : fFrame.Height(); + float tabSize = (fLook != kLeftTitledWindowLook + ? fFrame.Width() : fFrame.Height()) + fBorderWidth * 2; if (tabSize < fMinTabSize) tabSize = fMinTabSize; if (tabSize > fMaxTabSize)