Commit 5955353d authored by Felix Paul Kühne's avatar Felix Paul Kühne

playlist: make sure that the mini playback controller doesn't hide parts of the data views

parent f65eb4c7
......@@ -150,6 +150,7 @@ static NSString *kDisplayedFirstSteps = @"Did we display the first steps tutoria
}
self.view = contentView;
[self displayMiniPlaybackViewIfNeeded];
}
#pragma mark -
......@@ -445,9 +446,19 @@ static NSString *kDisplayedFirstSteps = @"Did we display the first steps tutoria
_miniPlaybackView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleTopMargin;
[_miniPlaybackView setupForWork];
[self.view addSubview:_miniPlaybackView];
CGRect listViewRect = viewRect;
listViewRect.size.height = listViewRect.size.height - _miniPlaybackView.frame.size.height;
if (_usingTableViewToShowData)
_tableView.frame = listViewRect;
else
_collectionView.frame = listViewRect;
} else {
[_miniPlaybackView removeFromSuperview];
_miniPlaybackView = nil;
if (_usingTableViewToShowData)
_tableView.frame = self.view.frame;
else
_collectionView.frame = self.view.frame;
}
}
......
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