Do not resize columns which are not resizable

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7460 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
nico 2000-09-10 15:02:09 +00:00
parent f12bf1b152
commit 8492cab559

View file

@ -270,6 +270,10 @@
columns = [_tableView tableColumns];
/* Column at the left */
columnLow = [columns objectAtIndex: _resizedColumn];
if ([columnLow isResizable] == NO)
{
return;
}
/* We use p as a temporary variable for a while */
p = NSMinX (rectLow) + [columnLow minWidth];
minCoord = MAX (p, minCoord);
@ -278,7 +282,10 @@
/* Column at the right */
columnHigh = [columns objectAtIndex: _resizedColumn + 1];
if ([columnHigh isResizable] == NO)
{
return;
}
/* This is trickier - think to what happens at the column on
the right when the user released the mouse somewhere */
p = NSMaxX (rectHigh) - [columnHigh minWidth];