]> git.sesse.net Git - vlc/commitdiff
macosx: fix wrong size of playlist when using podcast and minimal view
authorDavid Fuhrmann <dfuhrmann@videolan.org>
Sat, 18 Oct 2014 11:20:36 +0000 (13:20 +0200)
committerDavid Fuhrmann <dfuhrmann@videolan.org>
Sat, 18 Oct 2014 11:20:36 +0000 (13:20 +0200)
modules/gui/macosx/MainWindow.m

index 198efd0b76ec52112f7ce9a54179e8649980568a..870eee9f7fb5e9d1023b8cee8151b236613eeee4 100644 (file)
@@ -453,9 +453,15 @@ static VLCMainWindow *_o_sharedInstance = nil;
     dropzoneboxRect.origin.x = (plrect.size.width - dropzoneboxRect.size.width) / 2;
     dropzoneboxRect.origin.y = (plrect.size.height - dropzoneboxRect.size.height) / 2;
 
-    [o_playlist_table setFrame: plrect];
     [o_dropzone_view setFrame: plrect];
     [o_dropzone_box setFrame: dropzoneboxRect];
+
+    if (b_podcastView_displayed) {
+        plrect.size.height -= [o_podcast_view frame].size.height;
+        plrect.origin.y = [o_podcast_view frame].size.height;
+    }
+    [o_playlist_table setFrame: plrect];
+
     [o_dropzone_view setNeedsDisplay: YES];
     [o_playlist_table setNeedsDisplay: YES];
 }