changeset 1135:6828a01ecf3c

Include the header column text width during container optimize on Mac.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 07 Sep 2011 01:52:54 +0000
parents 41a93f9896e3
children 1a5b0908659b
files mac/dw.m
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mac/dw.m	Wed Sep 07 00:56:46 2011 +0000
+++ b/mac/dw.m	Wed Sep 07 01:52:54 2011 +0000
@@ -1539,7 +1539,8 @@
                 if(rowcount > 0)
                 {
                     int x;
-                    int width = 0;
+                    NSCell *colcell = [column headerCell];
+                    int width = [colcell cellSize].width;
 
                     for(x=0;x<rowcount;x++)
                     {