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

Re: [Sc-devel] relativeOrigin...



i'm just about to fix that ...

On Feb 7, 2008, at 5:23 PM, Scott Wilson wrote:


On 7 Feb 2008, at 15:48, Scott Wilson wrote:


On 7 Feb 2008, at 15:38, felix wrote:


scroll view still doesn't work correctly with it.
i posted a test that shows the failure.  maybe you can suss it.

This is the yellow square thing? Yes that's weird.


Actually there's something wrong in that example even without a scrollview. Observe:

// wrong
(
w = SCWindow.new;

c = SCCompositeView(w,Rect(30,30,300,300));
c.relativeOrigin = true;
c.background = Color.blue;
)
//
//// although its parent is relativeOrigin, the scroll view does not position itself
//s = SCScrollView(c,Rect(0,0,40,40));
//s.background = Color.yellow;

(
// where it should be
d = SCStaticText(c,Rect(0,0,40,40));
d.background = Color.red;

w.front;
)

// right
(
w = SCWindow.new;

c = SCCompositeView(w,Rect(30,30,300,300));
c.relativeOrigin = true;
c.background = Color.blue;

// where it should be
d = SCStaticText(c,Rect(0,0,40,40));
d.background = Color.red;

w.front;
)

If you execute it as two blocks it's different than as one.

S.
_______________________________________________
Sc-devel mailing list
Sc-devel@xxxxxxxxxxxxxxx
http://lists.create.ucsb.edu/mailman/listinfo/sc-devel