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
This commit is contained in:
Michael Lotz
2008-10-26 10:53:13 +00:00
parent 1bbf044eeb
commit a0d69d7dac
+2 -2
View File
@@ -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)