From e7df93070d5739eea3fc02663bf685852ab50735 Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 1 Aug 2022 16:11:09 +1000 Subject: Force window onto screen when above it. Helps show autompletion when scrolled away from caret. --- qt/ScintillaEditBase/PlatQt.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qt/ScintillaEditBase/PlatQt.cpp') diff --git a/qt/ScintillaEditBase/PlatQt.cpp b/qt/ScintillaEditBase/PlatQt.cpp index 6c2cdfd8e..233e114ff 100644 --- a/qt/ScintillaEditBase/PlatQt.cpp +++ b/qt/ScintillaEditBase/PlatQt.cpp @@ -843,6 +843,8 @@ void Window::SetPositionRelative(PRectangle rc, const Window *relativeTo) ox = rectDesk.right() - sizex; if (oy + sizey > rectDesk.bottom()) oy = rectDesk.bottom() - sizey; + if (oy < rectDesk.top()) + oy = rectDesk.top(); Q_ASSERT(wid); window(wid)->move(ox, oy); -- cgit v1.2.3