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

This commit is contained in:
ShikiSuen 2022-03-04 20:01:18 +08:00
parent 4826636c33
commit 5f683ade57
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 cellWidth = rctCandidate.size.width + cellPadding
let cellHeight = rctCandidate.size.height + cellPadding let cellHeight = rctCandidate.size.height + cellPadding
if (calculatedWindowWidth < rctCandidate.size.width) { if (calculatedWindowWidth < rctCandidate.size.width) {
calculatedWindowWidth = rctCandidate.size.width calculatedWindowWidth = rctCandidate.size.width + cellPadding
} }
newWidths.append(cellWidth) newWidths.append(cellWidth)
newHeights.append(cellHeight) newHeights.append(cellHeight)