enlarging an NSScrollView, scrollbar size is wrong
enlarging an NSScrollView, scrollbar size is wrong
- Subject: enlarging an NSScrollView, scrollbar size is wrong
- From: arekkusu <email@hidden>
- Date: Sat, 21 Jun 2003 14:07:36 -0700
Hi, followup on my question about resizing a scrollview inside a
splitview causing the scrollbar to display incorrectly:
I've isolated this to a minimal test project and made it available at
http://idisk.mac.com/arekkusu/Public/SplitViewScrollBar.dmg
Explanation:
clicking "Shrink" collapses the bottom panel by 40 pixels. The
scrollbar is recalculated and redisplayed OK.
clicking "Grow" uncollapses the bottom panel by 40 pixels. Again,
scrollbar is displayed OK.
toggling the "bug" checkbox moves the splitview over to the window
edge, where I want it. Now:
clicking "Shrink" collapses the bottom panel by 40 pixels. The
scrollbar is still OK.
clicking "Grow" uncollapses the bottom panel by 40 pixels. This time
the scrollbar height is not correct and there is a 40 pixel tall white
chunk missing at the bottom.
If a Cocoa guru can please spare a few minutes to take a look and tell
me how to work around this, I will be very grateful. I don't know what
message to send to force the scrollview to recalculate it's scrollbar
height. But there must be one, since dragging the splitview divider
manually works fine. Also, the scrollbar height is properly
recalculated as soon as the window is resized.
thanks,
-alex
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.