diff --git a/Source/CandidateUI/VTVerticalCandidateController.m b/Source/CandidateUI/VTVerticalCandidateController.m index a0bf6c4f..7c4b1b15 100644 --- a/Source/CandidateUI/VTVerticalCandidateController.m +++ b/Source/CandidateUI/VTVerticalCandidateController.m @@ -366,7 +366,7 @@ static const CGFloat kCandidateTextLeftMargin = 8.0; _keyLabelStripView.keyLabels = [_keyLabels subarrayWithRange:NSMakeRange(0, keyLabelCount)]; _keyLabelStripView.labelOffsetY = (keyLabelFontSize >= candidateFontSize) ? 0.0 : floor((candidateFontSize - keyLabelFontSize) / 2.0); - CGFloat rowHeight = ceil(fontSize * 1.20); + CGFloat rowHeight = ceil(fontSize * 1.25); [_tableView setRowHeight:rowHeight]; CGFloat rowSpacing = [_tableView intercellSpacing].height; diff --git a/Source/CandidateUI/VTVerticalKeyLabelStripView.m b/Source/CandidateUI/VTVerticalKeyLabelStripView.m index a7ca4290..b6514421 100644 --- a/Source/CandidateUI/VTVerticalKeyLabelStripView.m +++ b/Source/CandidateUI/VTVerticalKeyLabelStripView.m @@ -84,6 +84,10 @@ NSRect textRect = NSMakeRect(0.0, index * cellHeight + _labelOffsetY, bounds.size.width, cellHeight - _labelOffsetY); NSRect cellRect = NSMakeRect(0.0, index * cellHeight, bounds.size.width, cellHeight - 1); + // fill in the last cell + if (index + 1 >= count) { + cellRect.size.height += 1.0; + } if (index == _highlightedIndex) { [darkGray setFill];