Add comment to NSButtonCell.m describing the reason for the change

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@38916 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Marcian Lytwyn 2015-08-22 15:57:26 +00:00
parent 89c12f32ad
commit 06cbbf5350

View file

@ -1122,6 +1122,10 @@ typedef struct _GSButtonCellFlags
|| [controlView mouse: [[controlView window] mouseLocationOutsideOfEventStream]
inRect: cellFrame]))
{
// Testplat-MAL-2015-08-22: Turns out this draw is using the full
// frame as opposed to the reduced frame. This ends up drawing
// buttons way too big compared to Cocoa version...
// Question is: what is the correct solution?
cellFrame = [self drawingRectForBounds:cellFrame];
[self drawBezelWithFrame: cellFrame inView: controlView];
}