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:
Marcian Lytwyn 2016-12-15 18:36:56 +00:00
parent 4582391923
commit 091858c26a
2 changed files with 6 additions and 1 deletions

View file

@ -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)

View file

@ -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);