mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-23 06:55:52 +00:00
Do not truncate bold labels
When label with default size are bold, letter like p, g, q etc, are truncated like in http://gyazo.com/d6c25af20574a96f9af0f288a7bd802a.png This commit fix this.
This commit is contained in:
1 parent
24c5b5f6c9
commit
0b09ada144
1 file changed
+6
@@ -71,6 +71,12 @@
|
||||
[self setFrameOrigin:CGPointMake(frame.origin.x - 3.0, frame.origin.y - 3.0)];
|
||||
[self setFrameSize:CGSizeMake(frame.size.width + 7.0, frame.size.height + 7.0)];
|
||||
}
|
||||
else if ([[self font] isBold])
|
||||
{
|
||||
var frame = [self frame];
|
||||
|
||||
[self setFrameSize:CGSizeMake(frame.size.width, frame.size.height + 2.0)];
|
||||
}
|
||||
|
||||
CPLog.debug("NSTextField: title=\"" + [self stringValue] + "\", placeholder=" + ([cell placeholderString] == null ? "<none>" : '"' + [cell placeholderString] + '"') + ", isBordered=" + [self isBordered] + ", isBezeled=" + [self isBezeled] + ", bezelStyle=" + [self bezelStyle]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user