Skip to content

Commit b13159a

Browse files
committed
Set pop-up menu to truncate overflowing items
1 parent 4c8dc61 commit b13159a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Commands/popup/TMDIncrementalPopUpMenu.mm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ - (void)setupInterface
161161
//[theTableView setBackgroundColor:[NSColor blackColor]];
162162

163163
NSTableColumn *column = [[[NSTableColumn alloc] initWithIdentifier:@"foo"] autorelease];
164-
[column setDataCell:[NSClassFromString(@"OakImageAndTextCell") new]];
164+
NSTextFieldCell* cell = [NSClassFromString(@"OakImageAndTextCell") new];
165+
cell.lineBreakMode = NSLineBreakByTruncatingTail;
166+
[column setDataCell:cell];
165167
[column setEditable:NO];
166168
[theTableView addTableColumn:column];
167169
[column setWidth:[theTableView bounds].size.width];

0 commit comments

Comments
 (0)