mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2025-02-06 12:17:30 +00:00
Attributed string menu items are sometimes clipped
This commit is contained in:
parent
c0273cfb39
commit
956d2124b9
@ -282,6 +282,7 @@ static NSRect boundsToTitleAreaRect(NSRect rect){
|
||||
#define CENTER_PART_RECT_VERTICALLY(partSize) \
|
||||
{ \
|
||||
NSSize __partSize = (partSize); \
|
||||
__partSize.width = ceilf(__partSize.width); \
|
||||
partRect.origin.y = origin.y + (itemHeight - __partSize.height) / 2; \
|
||||
partRect.size.height = __partSize.height; \
|
||||
partRect.size.width = __partSize.width; \
|
||||
|
Loading…
x
Reference in New Issue
Block a user