+ /* If we display video, then resize the video window */
+ if( GetWindow2() &&
+ p_intf->p_sys->p_video_window && p_intf->p_sys->p_video_sizer &&
+ p_intf->p_sys->p_video_sizer->GetMinSize() != wxSize(0,0) )
+ {
+ SetSashPosition( event.GetSize().GetHeight() - i_sash_position );
+ }
+ else if( GetWindow2() && GetWindow1() && GetWindow1()->GetSizer() )
+ {
+ wxSize size = GetWindow1()->GetSizer()->GetMinSize();
+
+ if( event.GetSize().GetHeight() - size.GetHeight() )
+ {
+ SetSashPosition( size.GetHeight() ? size.GetHeight() : 1 );
+ i_sash_position = event.GetSize().GetHeight() -
+ size.GetHeight();
+ i_width = event.GetSize().GetWidth();
+
+ size = wxSize( i_width, i_sash_position - GetSashSize() );
+ if( GetWindow2()->GetSizer() )
+ GetWindow2()->GetSizer()->SetMinSize( size );
+ }
+ }
+