diff options
author | nyamatongwe <nyamatongwe@gmail.com> | 2012-06-12 22:00:00 +1000 |
---|---|---|
committer | nyamatongwe <nyamatongwe@gmail.com> | 2012-06-12 22:00:00 +1000 |
commit | e0a3ca05480971ffacc7981a3e9835d9a7618259 (patch) | |
tree | 3e55a94de3e4a8571e43dbc85debb5ece1f54f74 | |
parent | 7fd6539ca25bdeaec066f7c25b488b6d96a36a74 (diff) | |
download | scintilla-mirror-e0a3ca05480971ffacc7981a3e9835d9a7618259.tar.gz |
Fix truncation of descenders and underscores in list box.
From Mike Lischke.
-rw-r--r-- | cocoa/PlatCocoa.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cocoa/PlatCocoa.mm b/cocoa/PlatCocoa.mm index fc7d7c222..937edbf00 100644 --- a/cocoa/PlatCocoa.mm +++ b/cocoa/PlatCocoa.mm @@ -1611,7 +1611,7 @@ void ListBoxImpl::SetFont(Font& font_) font.SetID(new QuartzTextStyle(*style)); NSFont *pfont = (NSFont *)style->getFontRef(); [[colText dataCell] setFont: pfont]; - CGFloat itemHeight = lround([pfont ascender] - [pfont descender]); + CGFloat itemHeight = ceil([pfont boundingRectForFont].size.height); [table setRowHeight:itemHeight]; } |