[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] FlowView broken?
Jan Trutzschler wrote:
> Hi Jostm,
> yes, there is an issue, when changing a view's bounds, when it is a
> child of a SCCompositeView.
> So i changed SCCompositeView's relativeOrigin back to false by
> default, until this is solved.
> Jan
>
My example seems to show further trouble as well. And what will happen
if relativeOrigin_(false) is nested in a relativeOrigin_(true), etc?
But the real problem seems to be that FlowViews don't work correctly if
the Rect of the topmost FlowView is offset.
I will add a relativeOrigin variable to my TabbedView once this stuff
has cleared up.
thanks
jostM
p.s., the following is also not working ( a resize problem), but this
has been around for some time:
(
w=SCWindow.new.front;
v=FlowView(w,Rect(50,50,300,300)).background_(Color.grey).resize_(4);
v.flow({arg q;
q.resize_(4);
r=SCCompositeView(q,Rect(0,0,80,80)).background_(Color.red.alpha_(0.3)).resize_(9);
r.decorator=FlowLayout.new(r.bounds, 2@2, 4@4);
r.parent.postln;
b=EZKnob(r, 32 @ 16, "Knob", action: { arg knb; knb.value.postln; });
b.cv.resize_(9);
b.labelView.resize_(9);
b.knobView.resize_(9);
b.numberView.resize_(9);
SCCompositeView(q,Rect(0,0,80,80)).background_(Color.red.alpha_(0.3)).resize_(9);
});
)