ctlIME // Force reinitiate ctlTooltip when show().

This commit is contained in:
ShikiSuen 2022-09-19 12:50:47 +08:00
parent ca1d17b4a7
commit ddd8b5d607
1 changed files with 6 additions and 0 deletions

View File

@ -58,6 +58,12 @@ extension ctlInputMethod {
if mgrPrefs.alwaysShowTooltipTextsHorizontally { return .horizontal }
return isVerticalTyping ? .vertical : .horizontal
}()
// NSAttributedTextView
do {
ctlInputMethod.tooltipInstance.hide()
ctlInputMethod.tooltipInstance = .init()
}
//
ctlInputMethod.tooltipInstance.show(
tooltip: tooltip, at: finalOrigin,
bottomOutOfScreenAdjustmentHeight: delta, direction: tooltipContentDirection