Fixed bug in seperator double-click when using formatters.
parent
bb7de6897e
commit
9bf75801b4
|
@ -37,7 +37,6 @@
|
||||||
|
|
||||||
//Info about the font and such
|
//Info about the font and such
|
||||||
NSCell *cell = [col dataCell];
|
NSCell *cell = [col dataCell];
|
||||||
NSAttributedString * as = [cell attributedStringValue];
|
|
||||||
|
|
||||||
//Binding info...reaching deep!
|
//Binding info...reaching deep!
|
||||||
NSDictionary *bindingInfo = [col infoForBinding:@"value"];
|
NSDictionary *bindingInfo = [col infoForBinding:@"value"];
|
||||||
|
@ -48,9 +47,10 @@
|
||||||
id row;
|
id row;
|
||||||
NSEnumerator *enumerator = [boundArray objectEnumerator];
|
NSEnumerator *enumerator = [boundArray objectEnumerator];
|
||||||
while (row = [enumerator nextObject]) {
|
while (row = [enumerator nextObject]) {
|
||||||
NSString *s = [row description];
|
|
||||||
|
|
||||||
float width = [s sizeWithAttributes:[as attributesAtIndex:0 effectiveRange:nil]].width;
|
[cell setObjectValue:row];
|
||||||
|
|
||||||
|
float width = [cell cellSize].width;
|
||||||
if (width > max_width)
|
if (width > max_width)
|
||||||
max_width = width;
|
max_width = width;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue