Close #491 (again), force the min-size of the detached video to be (1,1) after creation and layout.
Originally committed to SVN as r3024.
This commit is contained in:
parent
6e144e6589
commit
51c36f2803
1 changed files with 5 additions and 0 deletions
|
@ -86,6 +86,11 @@ DialogDetachedVideo::DialogDetachedVideo(FrameMain *par, const wxSize &initialDi
|
|||
panel->SetSizer(mainSizer);
|
||||
mainSizer->SetSizeHints(this);
|
||||
|
||||
// Ensure we can grow smaller, without these the window is locked to at least the initial size
|
||||
videoBox->videoDisplay->SetMinSize(wxSize(1,1));
|
||||
videoBox->SetMinSize(wxSize(1,1));
|
||||
SetMinSize(wxSize(1,1));
|
||||
|
||||
// Update
|
||||
parent->SetDisplayMode(0,-1);
|
||||
Options.SetBool(_T("Detached video"),true);
|
||||
|
|
Loading…
Reference in a new issue