[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #35702] NSPopUpButtonCells are clipped too short
From: |
Eric Wasylishen |
Subject: |
[bug #35702] NSPopUpButtonCells are clipped too short |
Date: |
Tue, 06 Mar 2012 08:50:41 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.11 (KHTML, like Gecko) Ubuntu/12.04 Chromium/17.0.963.65 Chrome/17.0.963.65 Safari/535.11 |
Follow-up Comment #2, bug #35702 (project gnustep):
Thanks for the report. From the image it looks like the size of the text is
being calculated, used to set the text drawing area, and the rendered text
ends up being longer.
I committed r34885 which may help; it won't try to restrict the text drawing
area to the calculated size.
If there are still problems, here's a code snippet you can add to the start of
the drawTitleForMenuItemCell: method in GSThemeDrawing.m to see the drawing
rect that is being calculated.
// Outline the title rect in red
[NSGraphicsContext saveGraphicsState];
[[NSColor redColor] set];
NSFrameRect([cell titleRectForBounds: cellFrame]);
[NSGraphicsContext restoreGraphicsState];
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?35702>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/