mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 07:10:47 +00:00
Removed ugly 17 pixels added to title width when computing menu sizes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15765 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
439b4c01e4
commit
efca744a34
1 changed files with 6 additions and 7 deletions
|
@ -433,13 +433,12 @@ _addLeftBorderOffsetToRect(NSRect aRect, BOOL isHorizontal)
|
||||||
|
|
||||||
- (void) sizeToFit
|
- (void) sizeToFit
|
||||||
{
|
{
|
||||||
unsigned i;
|
unsigned i;
|
||||||
unsigned howMany = [_itemCells count];
|
unsigned howMany = [_itemCells count];
|
||||||
float neededImageAndTitleWidth = [_font widthOfString:
|
float neededImageAndTitleWidth = [_font widthOfString: [_menu title]];
|
||||||
[_menu title]] + 17;
|
float neededKeyEquivalentWidth = 0.0;
|
||||||
float neededKeyEquivalentWidth = 0.0;
|
float neededStateImageWidth = 0.0;
|
||||||
float neededStateImageWidth = 0.0;
|
float accumulatedOffset = 0.0;
|
||||||
float accumulatedOffset = 0.0;
|
|
||||||
|
|
||||||
/* Set the necessary offset for the menuView. That is, how many pixels
|
/* Set the necessary offset for the menuView. That is, how many pixels
|
||||||
* do we need for our left side border line. For regular menus this
|
* do we need for our left side border line. For regular menus this
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue