X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9c712743cb68109d97927a129818c50e0b8e74c0..9a90985d5f2d7e0cd0e458bb3efba709a6166cbb:/contrib/src/gizmos/splittree.cpp?ds=inline diff --git a/contrib/src/gizmos/splittree.cpp b/contrib/src/gizmos/splittree.cpp index 709d86f729..00f6902a03 100644 --- a/contrib/src/gizmos/splittree.cpp +++ b/contrib/src/gizmos/splittree.cpp @@ -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)