]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/treebase.cpp
copy setup.h from setup0.h
[wxWidgets.git] / src / common / treebase.cpp
index 4eebd5fa094fa342a4f5a6e02a145a041b4f073e..38d242bf063267c577be5b432f2fea0ef96c50a6 100644 (file)
@@ -114,8 +114,10 @@ wxGetBestTreeSize(const wxTreeCtrlBase* treeCtrl, wxTreeItemId id, wxSize& size)
     if ( treeCtrl->GetBoundingRect(id, rect, true /* just the item */) )
     {
         // Translate to logical position so we get the full extent
+#if defined(__WXMSW__) && !defined(__WXUNIVERSAL__)
         rect.x += treeCtrl->GetScrollPos(wxHORIZONTAL);
         rect.y += treeCtrl->GetScrollPos(wxVERTICAL);
+#endif
 
         size.IncTo(wxSize(rect.GetRight(), rect.GetBottom()));
     }