Mercurial > dwindows
comparison mac/dw.m @ 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 | e24e5a13ff2c |
comparison
equal
deleted
inserted
replaced
1134:41a93f9896e3 | 1135:6828a01ecf3c |
---|---|
1537 if([column resizingMask] != NSTableColumnNoResizing) | 1537 if([column resizingMask] != NSTableColumnNoResizing) |
1538 { | 1538 { |
1539 if(rowcount > 0) | 1539 if(rowcount > 0) |
1540 { | 1540 { |
1541 int x; | 1541 int x; |
1542 int width = 0; | 1542 NSCell *colcell = [column headerCell]; |
1543 int width = [colcell cellSize].width; | |
1543 | 1544 |
1544 for(x=0;x<rowcount;x++) | 1545 for(x=0;x<rowcount;x++) |
1545 { | 1546 { |
1546 NSCell *cell = [self preparedCellAtColumn:z row:x]; | 1547 NSCell *cell = [self preparedCellAtColumn:z row:x]; |
1547 int thiswidth = [cell cellSize].width; | 1548 int thiswidth = [cell cellSize].width; |