Unwanted enclosingScrollView
Unwanted enclosingScrollView
- Subject: Unwanted enclosingScrollView
- From: Leonardo <email@hidden>
- Date: Wed, 25 Jun 2014 16:50:01 +0200
- Thread-topic: Unwanted enclosingScrollView
I have a page which is an NSView within a NSScrollView.
I put a NSTextView just within the page, without its scrollView.
NSScrollView (page's scrollView)
NSClipView
NSView (documentView - my page)
NSTextView (my textView Box)
So I have just discovered that the [textView enclosingScrollView] *becames*
the page's scrollView. Thus, when I resize the textView, its
enclosingScrollView gets scrolled to the origin. And my page scrolls
inopportunely.
How to get rid of this behavior?
If I set
[textView .textContainer setWidthTracksTextView:NO];
[textView .textContainer setHeightTracksTextView:NO];
The trouble disappears. But the text container doesn't shrink or enlarge as
expected.
Regards
-- Leonardo
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden