Fix for a problem with drop down indicators overlapping text

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@37448 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Jonathan Gillaspie 2013-12-11 15:54:44 +00:00
parent 364e2295e2
commit 77016b7aa0

View file

@ -587,11 +587,15 @@ static NSString *commandKeyString = @"#";
case NSImageLeft: case NSImageLeft:
cellFrame.origin.x += _imageWidth + GSCellTextImageXDist; cellFrame.origin.x += _imageWidth + GSCellTextImageXDist;
cellFrame.size.width = cellFrame.size.width - (_imageWidth + GSCellTextImageXDist); // the below line doesn't always clip correctly (eg drop down indicator images)
//cellFrame.size.width = cellFrame.size.width - (_imageWidth + GSCellTextImageXDist);
cellFrame.size.width = _titleWidth;
break; break;
case NSImageRight: case NSImageRight:
cellFrame.size.width = cellFrame.size.width - (_imageWidth + GSCellTextImageXDist); // the below line doesn't always clip correctly (eg drop down indicator images)
//cellFrame.size.width = cellFrame.size.width - (_imageWidth + GSCellTextImageXDist);
cellFrame.size.width = _titleWidth;
break; break;
case NSImageBelow: case NSImageBelow: