From c47ebbb7232aa86aa9a569095d3ff96b9cc75bb4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Felix=20Paul=20K=C3=BChne?= Date: Thu, 16 Jun 2005 07:17:30 +0000 Subject: [PATCH] * fix minor resize-bug when closing the playlist (closes #210) Please do not forwardport this commit. I'll do that in a couple of days. I have other pending changes to intf.m in trunk at the moment, which are not finished yet. --- modules/gui/macosx/intf.m | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m index 3a7cbc480a..851e2f8d19 100644 --- a/modules/gui/macosx/intf.m +++ b/modules/gui/macosx/intf.m @@ -1557,12 +1557,13 @@ static VLCMain *_o_sharedMainInstance = nil; else { o_rect.size.height = 500; - if ( o_rect.size.width == [o_window minSize].width ) - { - o_rect.size.width = 500; - } - } + + if ( o_rect.size.width == [o_window minSize].width ) + { + o_rect.size.width = 500; + } + o_rect.size.height = (o_size_with_playlist.height > 200) ? o_size_with_playlist.height : 500; o_rect.origin.x = [o_window frame].origin.x; @@ -1574,11 +1575,13 @@ static VLCMain *_o_sharedMainInstance = nil; { /* make small */ o_rect.size.height = [o_window minSize].height; + o_rect.size.width = [o_window minSize].width; o_rect.origin.x = [o_window frame].origin.x; /* Calculate the position of the lower right corner after resize */ o_rect.origin.y = [o_window frame].origin.y + [o_window frame].size.height - [o_window minSize].height; + [o_playlist_view setAutoresizesSubviews: NO]; [o_playlist_view removeFromSuperview]; [o_btn_playlist setState: NO]; -- 2.39.2