]> git.saurik.com Git - wxWidgets.git/commitdiff
Applied Patch #775357
authorRobin Dunn <robin@alldunn.com>
Wed, 24 Sep 2003 00:21:17 +0000 (00:21 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 24 Sep 2003 00:21:17 +0000 (00:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23869 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wxPython/lib/scrolledpanel.py

index 1b8c79a844d59f468d8e4fe4719ca14b77c669f2..3fb7704bc36841620845fc04156ee3980254c6a8 100644 (file)
@@ -73,11 +73,11 @@ as a proper class (and the demo is now converted to just use it.)
 
         # is it before the left edge?
         if cpos.x < 0 and sppu_x > 0:
-                new_vs_x = cpos.x / sppu_x
+            new_vs_x = vs_x + (cpos.x / sppu_x)
 
         # is it above the top?
         if cpos.y < 0 and sppu_y > 0:
-            new_vs_y = cpos.y / sppu_y
+            new_vs_y = vs_y + (cpos.y / sppu_y)
 
 
         # is it past the right edge ?