mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
Sync table headers on mouse down clicks to avoid missing text, etc
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@40265 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4582391923
commit
091858c26a
2 changed files with 6 additions and 1 deletions
|
@ -520,7 +520,7 @@
|
|||
p = [self convertPoint: unconverted fromView: nil].x;
|
||||
if (mouseDragged == NO)
|
||||
{
|
||||
NSLog(@"TODO: Deselect the column");
|
||||
[self setNeedsDisplay:YES];
|
||||
}
|
||||
mouseDragged = YES;
|
||||
if (p < minVisCoord || p > maxVisCoord)
|
||||
|
|
|
@ -3725,6 +3725,7 @@ static inline float computePeriod(NSPoint mouseLocationWin,
|
|||
{
|
||||
[self deselectAll:self];
|
||||
[self displayIfNeeded];
|
||||
[[self headerView] setNeedsDisplay:YES];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -3796,6 +3797,10 @@ static inline float computePeriod(NSPoint mouseLocationWin,
|
|||
currentRow, \
|
||||
&_selectedRow, \
|
||||
selectionMode); \
|
||||
if (_clickedColumn != -1) \
|
||||
{ \
|
||||
[[self headerView] setNeedsDisplayInRect:[[self headerView] headerRectOfColumn:_clickedColumn]]; \
|
||||
} \
|
||||
[self displayIfNeeded]; \
|
||||
} \
|
||||
} while (0);
|
||||
|
|
Loading…
Reference in a new issue