]> git.sesse.net Git - vlc/commitdiff
* fix minor resize-bug when closing the playlist (closes #210)
authorFelix Paul Kühne <fkuehne@videolan.org>
Thu, 16 Jun 2005 07:17:30 +0000 (07:17 +0000)
committerFelix Paul Kühne <fkuehne@videolan.org>
Thu, 16 Jun 2005 07:17:30 +0000 (07:17 +0000)
Please do not forwardport this commit. I'll do that in a couple of days. I have other pending changes to intf.m in trunk at the moment, which are not finished yet.

modules/gui/macosx/intf.m

index 3a7cbc480ac9fdfb4f60861c3617d6e4c81ffce6..851e2f8d197b80d94ec4534d25394c0e2fdcd954 100644 (file)
@@ -1557,12 +1557,13 @@ static VLCMain *_o_sharedMainInstance = nil;
         else
         {
             o_rect.size.height = 500;
-            if ( o_rect.size.width == [o_window minSize].width )
-            {
-                o_rect.size.width = 500;
-            }
-
         }
+        
+        if ( o_rect.size.width == [o_window minSize].width )
+        {
+            o_rect.size.width = 500;
+        }
+        
         o_rect.size.height = (o_size_with_playlist.height > 200) ?
             o_size_with_playlist.height : 500;
         o_rect.origin.x = [o_window frame].origin.x;
@@ -1574,11 +1575,13 @@ static VLCMain *_o_sharedMainInstance = nil;
     {
         /* make small */
         o_rect.size.height = [o_window minSize].height;
+        o_rect.size.width = [o_window minSize].width;
         o_rect.origin.x = [o_window frame].origin.x;
         /* Calculate the position of the lower right corner after resize */
         o_rect.origin.y = [o_window frame].origin.y +
             [o_window frame].size.height - [o_window minSize].height;
 
+        
         [o_playlist_view setAutoresizesSubviews: NO];
         [o_playlist_view removeFromSuperview];
         [o_btn_playlist setState: NO];