Commit efd27a18 authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

Status Label: center in superview instead of window to fix alignment issues in landscape mode

parent bd0d4a48
......@@ -17,7 +17,7 @@
/* layout and horizontal center in super view */
[self sizeToFit];
CGRect selfFrame = self.frame;
CGRect parentFrame = [self window].bounds;
CGRect parentFrame = [self superview].bounds;
selfFrame.size.width += 15.; // take extra width into account for our custom drawing
selfFrame.origin.x = (parentFrame.size.width - selfFrame.size.width) / 2.;
[self setFrame:selfFrame];
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