[vlc-commits] macosx: fix wrong size of playlist when using podcast and minimal view

David Fuhrmann git at videolan.org
Sat Oct 18 13:21:20 CEST 2014


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sat Oct 18 13:20:36 2014 +0200| [19bbb8cc2c0aacc176ac83dc7a57fe94407e9ef4] | committer: David Fuhrmann

macosx: fix wrong size of playlist when using podcast and minimal view

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

 modules/gui/macosx/MainWindow.m |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m
index 198efd0..870eee9 100644
--- a/modules/gui/macosx/MainWindow.m
+++ b/modules/gui/macosx/MainWindow.m
@@ -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];
 }



More information about the vlc-commits mailing list