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
6e144e6589
commit
51c36f2803
|
@ -86,6 +86,11 @@ DialogDetachedVideo::DialogDetachedVideo(FrameMain *par, const wxSize &initialDi
|
||||||
panel->SetSizer(mainSizer);
|
panel->SetSizer(mainSizer);
|
||||||
mainSizer->SetSizeHints(this);
|
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
|
// Update
|
||||||
parent->SetDisplayMode(0,-1);
|
parent->SetDisplayMode(0,-1);
|
||||||
Options.SetBool(_T("Detached video"),true);
|
Options.SetBool(_T("Detached video"),true);
|
||||||
|
|
Loading…
Reference in New Issue