Add right margin around wxGenericCollapsiblePane header too
This makes the collapsible pane allocated exactly its best size better looking, as the header is centered now, instead of having a border on the left side, but not on the right one. See #18515.
This commit is contained in:
@@ -84,8 +84,7 @@ bool wxGenericCollapsiblePane::Create(wxWindow *parent,
|
||||
m_pButton = new wxCollapsibleHeaderCtrl(this, wxID_ANY, label, wxPoint(0, 0),
|
||||
wxDefaultSize);
|
||||
|
||||
// on other platforms we put the static line and the button horizontally
|
||||
m_sz->Add(m_pButton, 0, wxLEFT|wxTOP|wxBOTTOM, GetBorder());
|
||||
m_sz->Add(m_pButton, wxSizerFlags().Border(wxALL, GetBorder()));
|
||||
|
||||
// FIXME: at least under wxGTK1 the background is black if we don't do
|
||||
// this, no idea why...
|
||||
|
Reference in New Issue
Block a user