From 51c36f2803852bfe47d5cc6f4a29c6c41a0da803 Mon Sep 17 00:00:00 2001 From: Niels Martin Hansen Date: Sat, 6 Jun 2009 14:36:22 +0000 Subject: [PATCH] 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. --- aegisub/src/dialog_detached_video.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/aegisub/src/dialog_detached_video.cpp b/aegisub/src/dialog_detached_video.cpp index d3d5a47ce..4ff7fb82b 100644 --- a/aegisub/src/dialog_detached_video.cpp +++ b/aegisub/src/dialog_detached_video.cpp @@ -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);