mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 04:57:03 +00:00
Text size and theming enhancements
- _CPImageAndTextView adds extra pixels to allow for fractional pixels in -sizeToFit. - NSButton now allows buttons that are not fixed height, if the theme allows it. - Documented the mapping between bezel style constants and their IB style names.
This commit is contained in:
@@ -744,7 +744,13 @@ var _CPimageAndTextViewFrameSizeChangedFlag = 1 << 0,
|
||||
if ((_imagePosition !== CPImageOnly) && [_text length] > 0)
|
||||
{
|
||||
if (!_textSize)
|
||||
_textSize = [_text sizeWithFont:_font || [CPFont systemFontOfSize:CPFontCurrentSystemSize]];
|
||||
{
|
||||
_textSize = [_text sizeWithFont:_font || [CPFont systemFontOfSize:0]];
|
||||
|
||||
// Account for fractional pixels
|
||||
_textSize.width += 1;
|
||||
_textSize.height += 1;
|
||||
}
|
||||
|
||||
if (!_image || _imagePosition === CPImageOverlaps)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user