mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-30 20:07:36 +00:00
Remove token field reference.
This commit is contained in:
1 parent
b166995327
commit
2574fac44a
1 file changed
+2
-4
@@ -25,8 +25,6 @@
|
||||
@import "CPTextField.j"
|
||||
@import "_CPMenuWindow.j"
|
||||
|
||||
var CPTokenFieldTableColumnIdentifier = @"CPTokenFieldTableColumnIdentifier";
|
||||
|
||||
|
||||
/*!
|
||||
An "autocomplete" menu displayed by a text field.
|
||||
@@ -60,7 +58,7 @@ var CPTokenFieldTableColumnIdentifier = @"CPTokenFieldTableColumnIdentifier";
|
||||
|
||||
tableView = [[CPTableView alloc] initWithFrame:CPRectMakeZero()];
|
||||
|
||||
var tableColumn = [[CPTableColumn alloc] initWithIdentifier:CPTokenFieldTableColumnIdentifier];
|
||||
var tableColumn = [CPTableColumn new];
|
||||
[tableColumn setResizingMask:CPTableColumnAutoresizingMask];
|
||||
[tableView addTableColumn:tableColumn];
|
||||
|
||||
@@ -119,7 +117,7 @@ var CPTokenFieldTableColumnIdentifier = @"CPTokenFieldTableColumnIdentifier";
|
||||
|
||||
// Correctly size the tableview
|
||||
// FIXME Horizontal scrolling will not work because we are not actually looking at the content to set the width for the table column
|
||||
[[tableView tableColumnWithIdentifier:CPTokenFieldTableColumnIdentifier] setWidth:[[scrollView contentView] frame].size.width];
|
||||
[[[tableView tableColumns] firstObject] setWidth:[[scrollView contentView] frame].size.width];
|
||||
|
||||
// Manually sizeToFit because CPTableView's sizeToFit doesn't work properly
|
||||
var frameOrigin = [textField convertPoint:[textField bounds].origin toView:[contentView superview]],
|
||||
|
||||
Reference in new issue
Block a user