Commit 7b28d2e7 authored by Felix Paul Kühne's avatar Felix Paul Kühne

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

Inspired by efbad059
parent ad0e05bf
...@@ -719,23 +719,23 @@ static VLCMainWindow *_o_sharedInstance = nil; ...@@ -719,23 +719,23 @@ static VLCMainWindow *_o_sharedInstance = nil;
- (void)resizePlaylistAfterCollapse - (void)resizePlaylistAfterCollapse
{ {
id o_playlist_viewitem;
if (OSX_LEOPARD)
o_playlist_viewitem = o_playlist_table;
else
o_playlist_viewitem = [o_playlist_table animator];
NSRect plrect; NSRect plrect;
plrect = [o_playlist_table frame]; 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.; // actual pl top bar height, which differs from its frame
[o_playlist_viewitem setFrame: plrect]; if (OSX_LEOPARD)
[o_playlist_table setFrame: plrect];
else
[[o_playlist_table animator] setFrame: plrect];
NSRect rightSplitRect; NSRect rightSplitRect;
rightSplitRect = [o_right_split_view frame]; rightSplitRect = [o_right_split_view frame];
plrect = [o_dropzone_box frame]; plrect = [o_dropzone_box frame];
plrect.origin.x = (rightSplitRect.size.width - plrect.size.width) / 2; plrect.origin.x = (rightSplitRect.size.width - plrect.size.width) / 2;
plrect.origin.y = (rightSplitRect.size.height - plrect.size.height) / 2; plrect.origin.y = (rightSplitRect.size.height - plrect.size.height) / 2;
[o_playlist_viewitem setFrame: plrect]; if (OSX_LEOPARD)
[o_dropzone_box setFrame: plrect];
else
[[o_dropzone_box animator] setFrame: plrect];
} }
- (void)makeSplitViewVisible - (void)makeSplitViewVisible
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment