[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sc-devel] relativeOrigin...



i agree (absoluteBounds should stop traversal at topview or scrollview ; scrollview should always have relativeOrigin = true)

Am 11.02.2008 um 21:32 schrieb Scott Wilson:

One more thing:

I think SCScrollView should not allow relativeOrigin = true. It basically always is true, and setting it just messes things up.

Observe this ugliness:

(
a = SCWindow.new;

b = SCScrollView(a, Rect(10,10,150,100));
b.relativeOrigin = true;
c = SC2DSlider(b, Rect(0,0,100,100));	
d = SC2DSlider(b, Rect(100,0,100,100));

a.front;
)

c.bounds
c.absoluteBounds

With scrolling I'm not sure what absoluteBounds would mean in terms of the top level topview anyway. I think absoluteBounds should only go up to the next highest topview. (i.e. SCTopView, SCScrollTopView or SCScrollView. It's silly to go above that.

S.
_______________________________________________
Sc-devel mailing list
Sc-devel@xxxxxxxxxxxxxxx
http://lists.create.ucsb.edu/mailman/listinfo/sc-devel