Voltaire // Recalculate cellPadding.
This commit is contained in:
parent
9ad145df35
commit
427af014d6
|
@ -112,7 +112,7 @@ private class HorizontalCandidateView: NSView {
|
||||||
keyLabelWidth = ceil(labelFontSize)
|
keyLabelWidth = ceil(labelFontSize)
|
||||||
keyLabelHeight = ceil(labelFontSize * 2)
|
keyLabelHeight = ceil(labelFontSize * 2)
|
||||||
candidateTextHeight = ceil(candidateFontSize * 1.20)
|
candidateTextHeight = ceil(candidateFontSize * 1.20)
|
||||||
cellPadding = ceil(biggestSize / 2.0)
|
cellPadding = ceil(biggestSize / 4.0) * 2
|
||||||
}
|
}
|
||||||
|
|
||||||
override func draw(_: NSRect) {
|
override func draw(_: NSRect) {
|
||||||
|
|
|
@ -119,7 +119,7 @@ private class VerticalCandidateView: NSView {
|
||||||
keyLabelWidth = ceil(labelFontSize)
|
keyLabelWidth = ceil(labelFontSize)
|
||||||
keyLabelHeight = ceil(labelFontSize * 2)
|
keyLabelHeight = ceil(labelFontSize * 2)
|
||||||
candidateTextHeight = ceil(candidateFontSize * 1.20)
|
candidateTextHeight = ceil(candidateFontSize * 1.20)
|
||||||
cellPadding = ceil(biggestSize / 2.0)
|
cellPadding = ceil(biggestSize / 4.0) * 2
|
||||||
}
|
}
|
||||||
|
|
||||||
override func draw(_: NSRect) {
|
override func draw(_: NSRect) {
|
||||||
|
|
Loading…
Reference in New Issue