From: Stefan Csomor Date: Wed, 4 Aug 2004 11:48:04 +0000 (+0000) Subject: corrected scroll rect position X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/84e5d27d6c0703ec9ffd92b85319cb210226aef1?ds=inline corrected scroll rect position git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28617 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/window.cpp b/src/mac/carbon/window.cpp index 8140154e8b..5f20486d33 100644 --- a/src/mac/carbon/window.cpp +++ b/src/mac/carbon/window.cpp @@ -2329,6 +2329,8 @@ void wxWindowMac::ScrollWindow(int dx, int dy, const wxRect *rect) HIViewRender(*m_peer) ; #endif } + // as the native control might be not a 0/0 wx window coordinates, we have to offset + scrollrect.Offset( -MacGetLeftBorderSize() , -MacGetTopBorderSize() ) ; m_peer->ScrollRect( scrollrect , dx , dy ) ; #else