From: Julian Smart Date: Sun, 26 Nov 2006 22:12:20 +0000 (+0000) Subject: Don't apply bounding box adjustment when using generic tree control X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9766efc33f1dc1d9a9e03ea6eb37985f20b1dd06 Don't apply bounding box adjustment when using generic tree control git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/treebase.cpp b/src/common/treebase.cpp index 4eebd5fa09..38d242bf06 100644 --- a/src/common/treebase.cpp +++ b/src/common/treebase.cpp @@ -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())); }