ctlIME // Force reinitiate ctlTooltip when show().
This commit is contained in:
parent
ca1d17b4a7
commit
ddd8b5d607
|
@ -58,6 +58,12 @@ extension ctlInputMethod {
|
||||||
if mgrPrefs.alwaysShowTooltipTextsHorizontally { return .horizontal }
|
if mgrPrefs.alwaysShowTooltipTextsHorizontally { return .horizontal }
|
||||||
return isVerticalTyping ? .vertical : .horizontal
|
return isVerticalTyping ? .vertical : .horizontal
|
||||||
}()
|
}()
|
||||||
|
// 強制重新初期化,因為 NSAttributedTextView 有顯示滯後性。
|
||||||
|
do {
|
||||||
|
ctlInputMethod.tooltipInstance.hide()
|
||||||
|
ctlInputMethod.tooltipInstance = .init()
|
||||||
|
}
|
||||||
|
// 再設定其文字顯示內容並顯示。
|
||||||
ctlInputMethod.tooltipInstance.show(
|
ctlInputMethod.tooltipInstance.show(
|
||||||
tooltip: tooltip, at: finalOrigin,
|
tooltip: tooltip, at: finalOrigin,
|
||||||
bottomOutOfScreenAdjustmentHeight: delta, direction: tooltipContentDirection
|
bottomOutOfScreenAdjustmentHeight: delta, direction: tooltipContentDirection
|
||||||
|
|
Loading…
Reference in New Issue