Fix resizing prob
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50753 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1579,11 +1579,13 @@ wxDataViewTreeCtrl::wxDataViewTreeCtrl( wxWindow *parent, wxWindowID id,
|
|||||||
AssociateModel( store );
|
AssociateModel( store );
|
||||||
store->DecRef();
|
store->DecRef();
|
||||||
|
|
||||||
|
#if !defined(__WXGTK20__) || defined(wxUSE_GENERICDATAVIEWCTRL)
|
||||||
wxDataViewColumn *col = AppendIconTextColumn( "", 0, wxDATAVIEW_CELL_INERT, 40 );
|
wxDataViewColumn *col = AppendIconTextColumn( "", 0, wxDATAVIEW_CELL_INERT, 40 );
|
||||||
|
|
||||||
#if !defined(__WXGTK20__)
|
|
||||||
wxSize cient_size = GetClientSize();
|
wxSize cient_size = GetClientSize();
|
||||||
col->SetWidth( size.x );
|
col->SetWidth( size.x );
|
||||||
|
#else
|
||||||
|
AppendIconTextColumn( "", 0, wxDATAVIEW_CELL_INERT, 40 );
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1701,13 +1703,14 @@ void wxDataViewTreeCtrl::OnCollapsed( wxDataViewEvent &event )
|
|||||||
GetStore()->ItemChanged( event.GetItem() );
|
GetStore()->ItemChanged( event.GetItem() );
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxDataViewTreeCtrl::OnSize( wxSizeEvent &WXUNUSED(event) )
|
void wxDataViewTreeCtrl::OnSize( wxSizeEvent &event )
|
||||||
{
|
{
|
||||||
#if !defined(__WXGTK20__)
|
#if !defined(__WXGTK20__) || defined(wxUSE_GENERICDATAVIEWCTRL)
|
||||||
wxSize size = GetClientSize();
|
wxSize size = GetClientSize();
|
||||||
wxDataViewColumn *col = GetColumn( 0 );
|
wxDataViewColumn *col = GetColumn( 0 );
|
||||||
if (col) col->SetWidth( size.x );
|
if (col) col->SetWidth( size.x );
|
||||||
#endif
|
#endif
|
||||||
|
event.Skip( true );
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // wxUSE_DATAVIEWCTRL
|
#endif // wxUSE_DATAVIEWCTRL
|
||||||
|
Reference in New Issue
Block a user