mirror of https://github.com/odrling/Aegisub
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
e3d10e1896
commit
d1fe4bc8ea
|
@ -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 New Issue