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 | 2eca1d76e7d4d47da239f540302ee2441e0ac511 (patch) | |
tree | 2d7a0d64dcf0d345a7853e231d6349c2ba576697 | |
parent | 10d83e306ced24841f377ee78c16ff4d4e4991ac (diff) | |
download | scintilla-mirror-2eca1d76e7d4d47da239f540302ee2441e0ac511.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]; } |