Voltaire // Give a min. width to vertical candidate window.

This commit is contained in:
ShikiSuen 2022-03-04 20:01:18 +08:00
parent 9b0a857d9c
commit 0fbf2628ee
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ fileprivate class VerticalCandidateView: NSView {
let cellWidth = rctCandidate.size.width + cellPadding
let cellHeight = rctCandidate.size.height + cellPadding
if (calculatedWindowWidth < rctCandidate.size.width) {
calculatedWindowWidth = rctCandidate.size.width
calculatedWindowWidth = rctCandidate.size.width + cellPadding
}
newWidths.append(cellWidth)
newHeights.append(cellHeight)