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:
Niels Martin Hansen 2009-06-06 14:36:22 +00:00
parent 6e144e6589
commit 51c36f2803

View file

@ -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);