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

[Sc-devel] relative coordinates in SCCompositeView ?



Hi,
i discovered another inconsistency. While SCScrollView uses relative coordinates to place views, SCComposite doesn't.
Shall we change that for 3.2 ??


(
w = SCWindow.new;

c = SCScrollView(w,Rect(50,0,300,300));

a = SC2DSlider(c,Rect(0,0,100,100));	
b = SC2DSlider(c,Rect(100,100,100,100));

c.background = Gradient(Color.rand,Color.rand);

w.front;
)

(
w = SCWindow.new;

c = SCCompositeView(w,Rect(50,0,300,300));

a = SC2DSlider(c,Rect(0,0,100,100));	
b = SC2DSlider(c,Rect(100,100,100,100));

c.background = Gradient(Color.rand,Color.rand);

w.front;
)

Jan