Text views resizing in IB is driving me nuts
Text views resizing in IB is driving me nuts
- Subject: Text views resizing in IB is driving me nuts
- From: Seth Willits <email@hidden>
- Date: Tue, 12 Mar 2013 13:10:39 -0700
I've never figured this out and it's driving me nuts at the moment. For whatever reason, resizing a text view's enclosing scrollview within IB has always changed the textview's frame within the scroll view which is wacky and does affect the text view at runtime. It's possible for the text view to have a Y origin that's some illogical positive value, but the text is still drawn correctly within the view.
For example, here the text view's frame is {0, 9, 491, 233}
http://sethwillits.com/temp/upshot/upshot_Evj6fmlK.png
Now if I grab the top of the scroll view in IB to resize it, and drag past the bottom of the view and then back up to where it was originally, the frame is {0, 331, 491, 233}
http://sethwillits.com/temp/upshot/upshot_gSSyZytS.png
The scrollview and text view somehow work together to draw the text and handle the scrollbars correctly, but the Y origin of the text view is some wacky value which is affecting the ruler view (which you can see how it's chopped off a bit in the first screenshot).
The worst part is there appears to be now way to fix this in IB, and the textview frame is handled by the text system at runtime which is somewhat out of my hands.
What's a guy supposed to do?
--
Seth Willits
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden