]> git.sesse.net Git - vlc/commitdiff
Expand the window downwards, as you would expect this on OS X. Additionally, centre...
authorFelix Paul Kühne <fkuehne@videolan.org>
Wed, 26 Mar 2008 15:30:08 +0000 (16:30 +0100)
committerFelix Paul Kühne <fkuehne@videolan.org>
Wed, 26 Mar 2008 15:30:08 +0000 (16:30 +0100)
modules/gui/macosx/simple_prefs.m

index c9d5fa72a1f3b78edd42ed19e4207a6a18eb74bc..e8185ea76a5184c3798f748dc11fac942d0275a5 100644 (file)
@@ -578,6 +578,7 @@ static VLCSimplePrefs *_o_sharedInstance = nil;
     
     [self resetControls];
 
+    [o_sprefs_win center];
     [o_sprefs_win makeKeyAndOrderFront: self];
 }
 
@@ -920,6 +921,7 @@ static VLCSimplePrefs *_o_sharedInstance = nil;
         /* restore our window's height, if we've shown another category previously */
         o_old_view_rect = [o_currentlyShownCategoryView frame];
         o_win_rect.size.height = o_win_rect.size.height - o_old_view_rect.size.height;
+        o_win_rect.origin.y = ( o_win_rect.origin.y + o_old_view_rect.size.height ) - o_view_rect.size.height;
 
         /* remove our previous category view */
         [o_currentlyShownCategoryView removeFromSuperviewWithoutNeedingDisplay];