]> git.saurik.com Git - wxWidgets.git/commitdiff
corrected scroll rect position
authorStefan Csomor <csomor@advancedconcepts.ch>
Wed, 4 Aug 2004 11:48:04 +0000 (11:48 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Wed, 4 Aug 2004 11:48:04 +0000 (11:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28617 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/window.cpp

index 8140154e8bd78541de1f799085ac7283a3fb5f0a..5f20486d3349d7c440f047da2c8d787f2ac6658b 100644 (file)
@@ -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