]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/gizmos/splittree.cpp
added new files (after library split)
[wxWidgets.git] / contrib / src / gizmos / splittree.cpp
index 709d86f729ab5bb2d363a88cd81aeea115df4506..00f6902a03fee378f0687a9e58a2164b92aad0c5 100644 (file)
@@ -311,7 +311,7 @@ void wxRemotelyScrolledTreeCtrl::AdjustRemoteScrollbars()
         if (scrolledWindow)
         {
             wxRect itemRect;
-            if (GetBoundingRect(GetRootItem(), itemRect))
+            if (GetBoundingRect(GetFirstVisibleItem(), itemRect))
             {
                 // Actually, the real height seems to be 1 less than reported
                 // (e.g. 16 instead of 16)