1.9.3 SP2 // UI Fix. Merge Gitee PR!85 from upd/1.9.3sp2

This commit is contained in:
ShikiSuen 2022-08-15 12:56:30 +00:00 committed by Gitee
commit 75e93d0920
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 5 additions and 8 deletions

View File

@ -83,12 +83,9 @@ public class ctlCandidateIMK: IMKCandidates, ctlCandidateProtocol {
}
public func reloadData() {
guard let delegate = delegate else { return }
let candidates = delegate.candidatesForController(self).map { theCandidate -> String in
let theConverted = IME.kanjiConversionIfRequired(theCandidate.1)
return (theCandidate.1 == theConverted) ? theCandidate.1 : "\(theConverted)(\(theCandidate.1))"
}
setCandidateData(candidates)
// guard let delegate = delegate else { return } //
//
// setCandidateData(candidates) //
keyCount = selectionKeys().count
selectedCandidateIndex = 0
update()

View File

@ -88,8 +88,8 @@ private class vwrCandidateUniversal: NSView {
calculatedWindowWidth = rctCandidate.size.width + cellPadding * 2
}
case false:
if cellWidth < cellHeight * 1.35 {
cellWidth = cellHeight * 1.35
if cellWidth < cellHeight * 1.4 {
cellWidth = cellHeight * 1.4
}
}
newWidths.append(round(cellWidth))