Autoresize fails in a Scroll View!
Autoresize fails in a Scroll View!
- Subject: Autoresize fails in a Scroll View!
- From: Charles Jolley <email@hidden>
- Date: Thu, 20 Sep 2001 08:10:44 -0500
Hi everyone,
I've discovered what appears to be a bug in NSScrollView, but maybe
I'm using it wrong, so please give me some feedback. Here is what I'm
doing:
I have an NSScrollView, with an NSClipView and an NSTextView for the
documentView. The NSTextView is set to autoresize both vertically and
horizontally. When I first create this whole structure, changing the
size of the NSScrollView causes the NSTextView to change as well.
I change the bounds in the NSClipView to perform zooming, ala the
TextEdit sample code. After I change the bounds for the NSClipView,
however, the automatic resizing stops working. The tracing I have done
seems to indicate that the scroll view stops sending
-resizeSubviewsWithOldSize: to the clip view.
Any ideas why this happens? Is there a work around for it?
Thanks,
-Charles