[vlc-commits] macosx: fixed drawing issue when expanding the main window after collapsing

Felix Paul Kühne git at videolan.org
Sat Aug 25 13:09:36 CEST 2012


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sat Aug 25 13:09:35 2012 +0200| [d3656b95c5cb8eaa7191ec5161ba6a871b5ed498] | committer: Felix Paul Kühne

macosx: fixed drawing issue when expanding the main window after collapsing

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d3656b95c5cb8eaa7191ec5161ba6a871b5ed498
---

 modules/gui/macosx/MainWindow.m |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m
index d6bda9f..1d56b8b 100644
--- a/modules/gui/macosx/MainWindow.m
+++ b/modules/gui/macosx/MainWindow.m
@@ -982,9 +982,10 @@ static VLCMainWindow *_o_sharedInstance = nil;
 
 - (void)resizePlaylistAfterCollapse
 {
+    NSLog( @"resizePlaylistAfterCollapse" );
     NSRect plrect;
     plrect = [o_playlist_table frame];
-    plrect.size.height = i_lastSplitViewHeight - 19.0; // actual pl top bar height, which differs from its frame
+    plrect.size.height = i_lastSplitViewHeight - 20.0; // actual pl top bar height, which differs from its frame
     [[o_playlist_table animator] setFrame: plrect];
 
     NSRect rightSplitRect;
@@ -992,7 +993,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
     plrect = [o_dropzone_box frame];
     plrect.origin.x = (rightSplitRect.size.width - plrect.size.width) / 2;
     plrect.origin.y = (rightSplitRect.size.height - plrect.size.height) / 2;
-    [[o_playlist_table animator] setFrame: plrect];
+    [[o_dropzone_box animator] setFrame: plrect];
 }
 
 - (void)makeSplitViewVisible



More information about the vlc-commits mailing list