Permalink
Browse files

Fixed from on main label when disabling mirroring

  • Loading branch information...
1 parent 9223ce8 commit ae91e470e9b56c78d440cac63f4bed22b3fdd9f6 @ribeto committed Nov 23, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 SplitScreens/RootViewController.m
@@ -115,10 +115,10 @@ - (void)connectedScreensChanged {
if( [[UIScreen screens] count] == 1 ) {
[mainLabel removeFromSuperview];
float labelHeight = CGRectGetHeight([mainLabel frame]);
- [mainLabel setFrame:CGRectMake(0,
- CGRectGetHeight([[self view] frame])-2*labelHeight,
- CGRectGetWidth([[self view] frame]),
- labelHeight)];
+
+ CGRect frame = [subLabel frame];
+ frame.origin.y -=labelHeight;
+ [mainLabel setFrame:frame];
[[self view] addSubview:mainLabel];

0 comments on commit ae91e47

Please sign in to comment.