[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-dev] relative SCCompositeView
Started playing with this today... there is a weird bug with FlowView
that I haven't tracked down. With relativeOrigin = false, it looks
like the view bounds are set correctly but i's background is painted
relative to its parent's origin (h), when it should use absolute
coordinates. I don't see where the client is doing anything wrong in
f = FlowView();
g = FlowView(f, 150@350).background_(Color.red(alpha: 0.2)); // OK
h = FlowView(f, 150@350).background_(Color.blue(alpha: 0.2)); // OK
// background is painted in the wrong place:
i = FlowView(h, 100@100).background_(Color.red(alpha: 0.2)); // bad
GUI.staticText.new(i, 80@20).string_("hello"); // OK
It looks right in SwingOSC.
FlowViews with relativeOrigin = true are still messed up - I'll work
on that myself, no worries.
On Jan 15, 2008 2:24 PM, Jan Trutzschler <sc3@xxxxxxxxxxxxxxxxx> wrote:
> i committed a completely re-worked version of a relative
> SCCompositeView. At the moment relativeOrigin is set to false, so
> everything should work as usual. If it doesn't please report.
> I would be very happy if some of you could try it out, since it was a
> quite huge change, i had to touch every view object.
> sc-dev mailing list
James Harkins /// dewdrop world
"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal." -- Whitman