Use the same logic from classicui for out of window positon.
This commit is contained in:
parent
ffefd6df93
commit
a1fb000621
|
@ -405,7 +405,12 @@ void fcitx::FcitxCandidateWindow::updateClientSideUI(
|
|||
}
|
||||
|
||||
if (y + actualSize_.height() > screenGeometry.bottom()) {
|
||||
y = cursorRect.top() - actualSize_.height() - 40;
|
||||
if (y > screenGeometry.bottom()) {
|
||||
y = screenGeometry.bottom() - actualSize_.height() - 40;
|
||||
} else { /* better position the window */
|
||||
y = y - actualSize_.height() -
|
||||
((cursorRect.height() == 0) ? 40 : cursorRect.height());
|
||||
}
|
||||
}
|
||||
|
||||
if (y < screenGeometry.top()) {
|
||||
|
|
Loading…
Reference in New Issue