mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 09:01:13 +00:00
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:
parent
10ad22071d
commit
6b02a79f71
1 changed files with 8 additions and 1 deletions
|
@ -270,6 +270,10 @@
|
||||||
columns = [_tableView tableColumns];
|
columns = [_tableView tableColumns];
|
||||||
/* Column at the left */
|
/* Column at the left */
|
||||||
columnLow = [columns objectAtIndex: _resizedColumn];
|
columnLow = [columns objectAtIndex: _resizedColumn];
|
||||||
|
if ([columnLow isResizable] == NO)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
/* We use p as a temporary variable for a while */
|
/* We use p as a temporary variable for a while */
|
||||||
p = NSMinX (rectLow) + [columnLow minWidth];
|
p = NSMinX (rectLow) + [columnLow minWidth];
|
||||||
minCoord = MAX (p, minCoord);
|
minCoord = MAX (p, minCoord);
|
||||||
|
@ -278,7 +282,10 @@
|
||||||
|
|
||||||
/* Column at the right */
|
/* Column at the right */
|
||||||
columnHigh = [columns objectAtIndex: _resizedColumn + 1];
|
columnHigh = [columns objectAtIndex: _resizedColumn + 1];
|
||||||
|
if ([columnHigh isResizable] == NO)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
/* This is trickier - think to what happens at the column on
|
/* This is trickier - think to what happens at the column on
|
||||||
the right when the user released the mouse somewhere */
|
the right when the user released the mouse somewhere */
|
||||||
p = NSMaxX (rectHigh) - [columnHigh minWidth];
|
p = NSMaxX (rectHigh) - [columnHigh minWidth];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue