mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 19:01:54 +00:00
removed pad adding between state image and text
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16259 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f48f3d9c70
commit
61bb2e5abd
1 changed files with 61 additions and 73 deletions
|
@ -259,12 +259,6 @@ static NSImage *arrowImageH = nil;
|
|||
// Calculate the image part of cell frame from NSMenuView
|
||||
cellFrame.origin.x += [_menuView imageAndTitleOffset];
|
||||
cellFrame.size.width = [_menuView imageAndTitleWidth];
|
||||
/* If the state image has no width we do not add additional padding. */
|
||||
if ([_menuItem changesState] && _stateImageWidth > 0)
|
||||
{
|
||||
cellFrame.origin.x += [_menuView stateImageWidth]
|
||||
+ 2 * [_menuView horizontalEdgePadding];
|
||||
}
|
||||
|
||||
switch (_cell.image_position)
|
||||
{
|
||||
|
@ -321,12 +315,6 @@ static NSImage *arrowImageH = nil;
|
|||
// Calculate the image part of cell frame from NSMenuView
|
||||
cellFrame.origin.x += [_menuView imageAndTitleOffset];
|
||||
cellFrame.size.width = [_menuView imageAndTitleWidth];
|
||||
/* If the state image has no width we do not add additional padding. */
|
||||
if ([_menuItem changesState] && _stateImageWidth > 0)
|
||||
{
|
||||
cellFrame.origin.x += [_menuView stateImageWidth]
|
||||
+ 2 * [_menuView horizontalEdgePadding];
|
||||
}
|
||||
|
||||
switch (_cell.image_position)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue