Added call to auto resizing after user manually resizes the columns.

This commit is contained in:
Randall Luecke committed 2010-02-08 02:20:38 -05:00
1 parent 4a5e90b5cb
commit 4a98417ee8
2 files changed
+5

No files matched your search

+4
View File
@@ -309,6 +309,10 @@ var CPThemeStatePressed = CPThemeState("pressed");
if (newWidth >= [tableColumn minWidth])
{
[tableColumn setWidth:newWidth];
// FIXME: there has to be a better way to do this...
// We should refactor the auto resizing crap.
// We need to figure out the exact cocoa behavior here though.
[_tableView resizeWithOldSuperviewSize:[_tableView bounds]];
_lastLocation = location;
[[CPCursor resizeLeftRightCursor] set];
+1
View File
@@ -1175,6 +1175,7 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5;
return _CGRectMake(tableColumnRange.location, _CGRectGetMinY(rectOfRow), tableColumnRange.length, _CGRectGetHeight(rectOfRow));
}
//FIX ME: We should refactor this!
- (void)resizeWithOldSuperviewSize:(CGSize)aSize
{
[super resizeWithOldSuperviewSize:aSize];