scrolling problem with window resize
scrolling problem with window resize
- Subject: scrolling problem with window resize
- From: James Walker <email@hidden>
- Date: Mon, 27 Feb 2017 17:58:55 -0800
I have a cell-based outline view with one column, rows of variable
height, and a vertical scroll bar. I'm trying to restore the previous
window size, either by specifying an auto-save name in the nib, or by
calling -[NSWindow setFrameUsingName:] after loading the nib, or by
calling -[NSWindow setFrame: display:] after loading the nib. The
problem is that the scroll bar is messed up, in the sense that moving
the thumb all the way to the bottom does not reveal the bottom of the
content. But if I grab the bottom of the window and resize it, the
scrolling view and scroll bar get back in sync. Likewise, if I make the
window visible right before I set the frame, all is well.
Any idea why it would matter whether the window is visible yet? And is
there some way to slap NSScrollView upside the head to make its scroll
bar get into sync with its content?
_______________________________________________
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