Voltaire // Recalculate cellPadding.

This commit is contained in:
ShikiSuen 2022-05-29 15:21:41 +08:00
parent 9ad145df35
commit 427af014d6
2 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ private class HorizontalCandidateView: NSView {
keyLabelWidth = ceil(labelFontSize)
keyLabelHeight = ceil(labelFontSize * 2)
candidateTextHeight = ceil(candidateFontSize * 1.20)
cellPadding = ceil(biggestSize / 2.0)
cellPadding = ceil(biggestSize / 4.0) * 2
}
override func draw(_: NSRect) {

View File

@ -119,7 +119,7 @@ private class VerticalCandidateView: NSView {
keyLabelWidth = ceil(labelFontSize)
keyLabelHeight = ceil(labelFontSize * 2)
candidateTextHeight = ceil(candidateFontSize * 1.20)
cellPadding = ceil(biggestSize / 2.0)
cellPadding = ceil(biggestSize / 4.0) * 2
}
override func draw(_: NSRect) {