[sc-users] SCScrollView bounds change problem
Wouter Snoei
mailinglists at woutersnoei.nl
Mon Feb 4 14:26:56 PST 2008
Hi,
I got a stability problem with SCScrollView. If I run the following
code (based on example):
(
a = SCWindow.new.front;
b = SCScrollView(a, Rect(0, 0, 300, 300));
c = SC2DSlider(b, Rect(0, 0, 240, 240));
)
// everything is fine. No scrollbars because c is too small. If I
make the bounds of c bigger like this:
c.bounds_( Rect(0,0,400,400) );
// sliders appear. No problems yet. Now if I move the scrollbars a
bit like here:
b.visibleOrigin = 20 at 10; // or by hand
// and then change the bounds of c back to anything within 300,300
like so:
c.bounds_( Rect(0,0,240,240) );
// I get the eternal beachball.. What's happening?
//
// cheers,
// wouter
Wouter Snoei
info at woutersnoei.nl
http://www.woutersnoei.nl
More information about the sc-users
mailing list