Skip to content

Commit d796668

Browse files
committed
fixup: NowPlaying frame sets
1 parent a3eccbc commit d796668

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

XBMC Remote/NowPlaying.m

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2410,20 +2410,14 @@ - (void)setNowPlayingSizeIPhone:(CGSize)viewSize {
24102410
CGFloat reservedHeight = [Utilities getBottomPadding] + topBarHeight + CGRectGetHeight(playlistToolbarView.frame);
24112411

24122412
// Set correct size for background image and views
2413-
CGRect frame = transitionView.frame;
2414-
frame.size.height = GET_MAINSCREEN_HEIGHT;
2415-
frame.origin.y = -topBarHeight;
2416-
transitionView.frame = frame;
2417-
2418-
frame = nowPlayingView.frame;
2419-
frame.size.height = GET_MAINSCREEN_HEIGHT - reservedHeight;
2420-
frame.origin.y = topBarHeight;
2421-
nowPlayingView.frame = frame;
2422-
2423-
frame = playlistView.frame;
2424-
frame.size.height = GET_MAINSCREEN_HEIGHT - reservedHeight;
2425-
frame.origin.y = topBarHeight;
2426-
playlistView.frame = frame;
2413+
[transitionView setY:-topBarHeight];
2414+
[transitionView setHeight:GET_MAINSCREEN_HEIGHT];
2415+
2416+
[nowPlayingView setY:topBarHeight];
2417+
[nowPlayingView setHeight:GET_MAINSCREEN_HEIGHT - reservedHeight];
2418+
2419+
[playlistView setY:topBarHeight];
2420+
[playlistView setHeight:GET_MAINSCREEN_HEIGHT - reservedHeight];
24272421

24282422
CGFloat newWidth = floor(BOTTOMVIEW_WIDTH * scale);
24292423
CGFloat newHeight = floor(BOTTOMVIEW_HEIGHT * scale);

0 commit comments

Comments
 (0)