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

David Fuhrmann git at videolan.org
Sat Oct 18 13:23:04 CEST 2014


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

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

(cherry picked from commit 19bbb8cc2c0aacc176ac83dc7a57fe94407e9ef4)
Signed-off-by: David Fuhrmann <dfuhrmann at videolan.org>

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

 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 7a34367..3979814 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