mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-04 08:06:16 +00:00
Fixed: a recent change disabled first and last column resizing modes.
This commit is contained in:
1 parent
36c673c660
commit
92d44b12bd
1 file changed
+4
-4
@@ -1809,7 +1809,7 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5;
|
||||
// Fix me: this fires on the table setup at times
|
||||
if (lastColumnMaxX >= superviewWidth && lastColumnMaxX <= aSize.width || lastColumnMaxX <= superviewWidth && lastColumnMaxX >= aSize.width)
|
||||
_lastColumnShouldSnap = YES;
|
||||
else
|
||||
else if (mask === CPTableViewUniformColumnAutoresizingStyle)
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1964,10 +1964,10 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5;
|
||||
|
||||
var count = NUMBER_OF_COLUMNS();
|
||||
|
||||
//decrement the counter until we get to the last row that's not hidden
|
||||
while (count-- && [_tableColumns[count] isHidden]) ;
|
||||
// Decrement the counter until we get to the last column that's not hidden
|
||||
while (count-- && [_tableColumns[count] isHidden]);
|
||||
|
||||
//if the last column exists
|
||||
// If the last column exists
|
||||
if (count >= 0)
|
||||
{
|
||||
var columnToResize = _tableColumns[count],
|
||||
|
||||
Reference in new issue
Block a user