Commit 6bb63a1f authored by Richard Soderberg's avatar Richard Soderberg Committed by Carola Nitz

Layout the subframe so that it's shown on first visit

On tvOS, there's a bug where the list of chapters isn't shown when the
info pane is first opened. Switching to another tab of the pane and then
back to the (default, first) Chapters tab displays the subview correctly.
Calling layoutIfNeeded when binding the subview to the info controller
seems to ensure that it's ready to be displayed on the first visit.
parent bed2f964
......@@ -98,6 +98,7 @@
toFrame = smallFrame;
fromFrame = largeFrame;
[container addSubview:target.view];
[target.view layoutIfNeeded];
} else if ([source isKindOfClass:[VLCPlaybackInfoTVViewController class]]) {
infoVC = (VLCPlaybackInfoTVViewController*) source;
infoVC.dimmingView.alpha = 1.0;
......
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