Experiment with Toolpits of selected preset on OSX

This commit is contained in:
YuSanka 2018-06-29 13:07:58 +02:00
parent c1724f45c9
commit f8ab8b43de
3 changed files with 17 additions and 5 deletions

View file

@ -194,6 +194,9 @@ void wxDataViewTreeCtrlComboPopup::OnDataViewTreeCtrlSelection(wxCommandEvent& e
// ----------------------------------------------------------------------------
void PrusaCollapsiblePane::OnStateChange(const wxSize& sz)
{
#ifndef __WXOSX__
wxCollapsiblePane::OnStateChange(sz);
#else
SetSize(sz);
if (this->HasFlag(wxCP_NO_TLW_RESIZE))
@ -219,6 +222,7 @@ void PrusaCollapsiblePane::OnStateChange(const wxSize& sz)
// top->SetClientSize(newBestSize);
top->GetParent()->Layout();
top->Refresh();
#endif //__WXOSX__
}
// ----------------------------------------------------------------------------