changeset 1418:461240f946d0

Status text fields needs extra space on the Mac.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 02 Dec 2011 21:35:38 +0000
parents f4fc4ea92511
children 8827e9b14b40
files mac/dw.m
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mac/dw.m	Fri Dec 02 20:48:40 2011 +0000
+++ b/mac/dw.m	Fri Dec 02 21:35:38 2011 +0000
@@ -3568,8 +3568,15 @@
     else if([ object isKindOfClass:[ NSControl class ] ])
         nsstr = [object stringValue];
     
+    /* Handle static text fields */
     if([object isKindOfClass:[ NSTextField class ]] && ![object isEditable])
-        extrawidth = 8;
+    {
+        /* Handle status bar field */
+        if([object isBordered] || (DWOSMinor > 5 && [object isBezeled]))
+            extrawidth = 12;
+        else
+            extrawidth = 8;
+    }
     
     /* If we have a string... 
      * calculate the size with the current font.