aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/PlatCocoa.mm
diff options
context:
space:
mode:
Diffstat (limited to 'cocoa/PlatCocoa.mm')
-rw-r--r--cocoa/PlatCocoa.mm3
1 files changed, 2 insertions, 1 deletions
diff --git a/cocoa/PlatCocoa.mm b/cocoa/PlatCocoa.mm
index ca599b34d..dbf78c303 100644
--- a/cocoa/PlatCocoa.mm
+++ b/cocoa/PlatCocoa.mm
@@ -1692,6 +1692,7 @@ PRectangle ListBoxImpl::GetDesiredRect()
rcDesired.bottom = rcDesired.top + static_cast<XYPOSITION>(itemHeight * rows);
rcDesired.right = rcDesired.left + maxItemWidth + aveCharWidth;
+ rcDesired.right += 4; // Ensures no truncation of text
if (Length() > rows)
{
@@ -1704,7 +1705,7 @@ PRectangle ListBoxImpl::GetDesiredRect()
[scroller setHasVerticalScroller:NO];
}
rcDesired.right += maxIconWidth;
- rcDesired.right += 6;
+ rcDesired.right += 6; // For icon space
return rcDesired;
}