From 29c8d145ab97bb295885c9dd9126e5d04de10f7e Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 6 Oct 2010 10:39:57 +1100 Subject: Fix for bug #3079778: Autocompletion list overlaps text when WS_EX_CLIENTEDGE used --- win32/PlatWin.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'win32') diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 482808324..0421e5985 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -1037,9 +1037,9 @@ void Window::SetPosition(PRectangle rc) { void Window::SetPositionRelative(PRectangle rc, Window w) { LONG style = ::GetWindowLong(reinterpret_cast(wid), GWL_STYLE); if (style & WS_POPUP) { - RECT rcOther; - ::GetWindowRect(reinterpret_cast(w.GetID()), &rcOther); - rc.Move(rcOther.left, rcOther.top); + POINT ptOther = {0, 0}; + ::ClientToScreen(reinterpret_cast(w.GetID()), &ptOther); + rc.Move(ptOther.x, ptOther.y); // This #ifdef is for VC 98 which has problems with MultiMon.h under some conditions. #ifdef MONITOR_DEFAULTTONULL -- cgit v1.2.3