Sometimes field editor shows up incorrectly when editing cell in table view

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@39329 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Marcian Lytwyn 2016-02-02 22:23:47 +00:00
parent ffb26b5d34
commit 1232765f08

View file

@ -2328,12 +2328,14 @@ static NSColor *dtxtCol;
}
#if 0
#if 1
// Testplant-MAL-2015-06-20: merging removal causes focus ring issues...
// FIXME: we need to draw the focus ring, this works but
// there's something wrong about telling the view to come
// back here and draw.
[controlView setKeyboardFocusRingNeedsDisplayInRect:NSMakeRect (aRect.origin.x - 2.0, aRect.origin.y - 2.0, aRect.size.width + 4.0, aRect.size.height + 4.0)];
NSRect focusFrame = NSMakeRect (aRect.origin.x - 2.0, aRect.origin.y - 2.0,
aRect.size.width + 4.0, aRect.size.height + 4.0);
[controlView setKeyboardFocusRingNeedsDisplayInRect:focusFrame];
#endif
}