From 9e83884d49f5afa68c2eed7ca50e8f4a302dea4f Mon Sep 17 00:00:00 2001 From: zardoru Date: Sat, 21 Nov 2020 19:59:56 -0300 Subject: [PATCH] Wider split window --- src/AudioSplitter.cpp | 2 +- src/divedit.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AudioSplitter.cpp b/src/AudioSplitter.cpp index 690c458..3728043 100644 --- a/src/AudioSplitter.cpp +++ b/src/AudioSplitter.cpp @@ -115,9 +115,9 @@ AudioSplitter::AudioSplitter(wxWindow *parent, const wxPoint &pos, const wxSize sizer->Add(panel_parameters, wxSizerFlags().Border(wxALL, 10).Expand()); sizer->Add(panel_bottom, wxSizerFlags().Align(wxALIGN_RIGHT).Border(wxALL, 10)); + sizer->SetMinSize(size); SetSizerAndFit(sizer); panel->SetSize(GetSize()); - // SetMinSize(size); DragAcceptFiles(true); } diff --git a/src/divedit.cpp b/src/divedit.cpp index be480fa..cd548a2 100644 --- a/src/divedit.cpp +++ b/src/divedit.cpp @@ -383,7 +383,7 @@ bool DivisionEditor::DivRename() { void DivisionEditor::OnOpenAudioSplitter(wxCommandEvent &event) { if (!division) return; - auto splitter = new AudioSplitter(this, wxDefaultPosition, wxSize(-1, -1), division); + auto splitter = new AudioSplitter(this, wxDefaultPosition, wxSize(800, -1), division); splitter->Show(); }