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

Re: [Sc-devel] relativeOrigin...




On 12 Feb 2008, at 10:53, Scott Wilson wrote:

Yeah I know. We should probably just override and post a warning. But I don't think it's a big deal for 3.2.

S.

Actually I suppose in principle it should just be this:

relativeOrigin_{ } // just ignore it

as you may add a scrollview to a relative origin composite view and it shouldn't post a warning.

However this would break the fix I added yesterday. Since it's all working at the moment as near as I can tell:

//// These *seem* right to me
(
w = SCWindow.new;

c = SCCompositeView(w,Rect(10,10,300,300));
c.relativeOrigin = true;
c.background = "">Color.black;
a = SCScrollView(c,Rect(10,10,200,200));
b = SCScrollView(a,Rect(10,10,100,100));

d = SC2DSlider(b,Rect(10,10,40,40));

a.background = "">Gradient(Color.rand,Color.rand);
b.background = "">Gradient(Color.rand,Color.rand);

w.front;
)

(
w = SCWindow.new;

c = SCCompositeView(w,Rect(10,10,300,300));
c.relativeOrigin = true;
c.background = "">Color.black;
a = SCScrollView(c,Rect(10,10,200,200));
b = SCCompositeView(a,Rect(10,10,100,100));
b.relativeOrigin = true; //******* true

d = SC2DSlider(b,Rect(10,10,40,40));

a.background = "">Gradient(Color.rand,Color.rand);
b.background = "">Gradient(Color.rand,Color.rand);

w.front;
)

(
w = SCWindow.new;

c = SCCompositeView(w,Rect(10,10,300,300));
c.relativeOrigin = true;
c.background = "">Color.black;
a = SCScrollView(c,Rect(10,10,200,200));
b = SCCompositeView(a,Rect(10,10,100,100));
b.relativeOrigin = false; //******* false

d = SC2DSlider(b,Rect(10,10,40,40));

a.background = "">Gradient(Color.rand,Color.rand);
b.background = "">Gradient(Color.rand,Color.rand);

w.front;
)

I think it's probably best to leave as is for the moment.

S.