I have the following code, which adds a custom wxCollapsiblePane to a wxScrolledWindow instance.
I am calling the "Collapse(false)" function on the newly added wxCollapsiblePane instance, and also calling SetSizeHints and FitInside on the containing sizer. This issue is seen only on Linux. On Windows and Mac, it displays correctly.
What else should i be doing? Please help!
Code: Select all
metadataSetCollapsiblePane *collpane = new metadataSetCollapsiblePane(m_metaDataScrolledWindow, collpaneID, (*(metadataElement))["name"], wxDefaultPosition/*, wxSize(300, 30)*/);
if(bNewlyAdded)
collpane->Collapse(false);
itemGridSizer->Add(collpane, 1, wxEXPAND , 0);
m_metaDataControlsbox->SetSizeHints(m_metaDataScrolledWindow);
m_metaDataScrolledWindow->FitInside();
m_metaDataControlsbox->FitInside(m_metaDataScrolledWindow);
m_metaDataControlsbox->Layout();