Fix feedback compose view rotation issue

This fixes https://github.com/bitstadium/HockeySDK-iOS/issues/196
This commit is contained in:
Andreas Linde
2015-09-09 14:53:19 +02:00
parent f8d2dd0178
commit a770652d2f

View File

@@ -349,6 +349,8 @@
} }
if (!alreadySetup) { if (!alreadySetup) {
CGSize tempTextViewSize = CGSizeMake(self.contentViewContainer.frame.size.width, self.contentViewContainer.frame.size.height);
textViewFrame.size = tempTextViewSize;
textViewFrame.size.width -= scrollViewWidth; textViewFrame.size.width -= scrollViewWidth;
// height has to be identical to the textview! // height has to be identical to the textview!
scrollViewFrame = CGRectMake(CGRectGetMaxX(textViewFrame), self.view.frame.origin.y, scrollViewWidth, CGRectGetHeight(self.textView.bounds)); scrollViewFrame = CGRectMake(CGRectGetMaxX(textViewFrame), self.view.frame.origin.y, scrollViewWidth, CGRectGetHeight(self.textView.bounds));