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

Re: [Sc-devel] relativeOrigin...



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.