Hi,

I'm having a problem with Autolayout, where setting a scrollview's rulers 
hidden or visible, or toggling the window toolbar will set the frame size of 
the scrollview's  document view to zero, effectively making it disappear.

The scrollview, contentview and documentview are all set up in IB. Both the 
contentview and documentview have NO constraints. I've subclassed the 
contentview and overridden 'constrainBoundsRect:' in nsclipview to always keep 
the document view centered in the scrollview, even when changing the scrollview 
magnification. This all seems to work very nice, except for the above problem.

Strangely enough,  when I first change the scrollview magnification and then 
toggle the rulers (or the toolbar) the problem does not manifest. So, setting 
the magnification to something else than "1" does seem to fix the problem. 
I could do this little magnification trick upon startup, but that wouldn't be 
the best solution I guess, and it doesn't explain the observer behaviour.

Any advice would be appreciated.  
Thanks

-- 
Luc Van Bogaert

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to