X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4b8fa6349a2a08d74c81c0a547210e27b43a2f55..1ffc8d7a55af1c253ca363bb0fbdda26bb4c9c65:/src/generic/treectlg.cpp diff --git a/src/generic/treectlg.cpp b/src/generic/treectlg.cpp index b0e71881b0..1dd90fef81 100644 --- a/src/generic/treectlg.cpp +++ b/src/generic/treectlg.cpp @@ -865,7 +865,7 @@ bool wxGenericTreeCtrl::Create(wxWindow *parent, m_dottedPen = wxPen( wxT("grey"), 0, 0 ); - SetBestSize(size); + SetInitialSize(size); return true; } @@ -2232,8 +2232,12 @@ void wxGenericTreeCtrl::PaintItem(wxGenericTreeItem *item, wxDC& dc) if ( HasFlag(wxTR_FULL_ROW_HIGHLIGHT) ) { int x, y, w, h; - + // TODO : using DoGetPosition should be wrong on any platform, the dc is focused on this window +#ifdef __WXMAC__ + x=y=0; +#else DoGetPosition(&x, &y); +#endif DoGetSize(&w, &h); dc.DrawRectangle(x, item->GetY()+offset, w, total_h-offset); }