summaryrefslogtreecommitdiff
path: root/src/wx/content_panel.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-10-20 17:03:08 +0200
committerCarl Hetherington <cth@carlh.net>2020-10-20 17:03:08 +0200
commited94e34207c9d8dbd495ca4b0ef468b79126f26a (patch)
tree6e6aac753b6e950db49737856e215603c97d9b5b /src/wx/content_panel.cc
parent15723e1ba0574d4c62458321e9b6d64236e7e429 (diff)
Move the LimitedSplitter constructor into the .cc file.
Diffstat (limited to 'src/wx/content_panel.cc')
-rw-r--r--src/wx/content_panel.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/wx/content_panel.cc b/src/wx/content_panel.cc
index 0fd21ff86..8b6b02316 100644
--- a/src/wx/content_panel.cc
+++ b/src/wx/content_panel.cc
@@ -801,6 +801,16 @@ ContentPanel::panels () const
}
+LimitedSplitter::LimitedSplitter (wxWindow* parent)
+ : wxSplitterWindow (parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_NOBORDER | wxSP_3DSASH | wxSP_LIVE_UPDATE)
+{
+ /* This value doesn't really mean much but we just want to stop double-click on the
+ divider from shrinking the bottom panel (#1601).
+ */
+ SetMinimumPaneSize (64);
+}
+
+
void
LimitedSplitter::first_shown (wxWindow* top, wxWindow* bottom)
{