You can set up constraints afterward, using applyConstraint(). In,
say, handler="oninit" or something. For instance:
var f = function(){
this.setAttribute("width",
(parent.width /
parent.subviews.length);
}
var d = [parent, "width"];
this.applyConstraint("width", f, d);
On Jul 10, 2007, at 6:14 AM, Robin Sheat wrote:
On Tuesday 10 July 2007 21:51:42 P T Withington wrote:
Are you looking for 'placement'?
I don't think that's quite what I'm after. I want to have a tag not
be a child
of the lexical parent (i.e. the class that its declaration is
contained in),
but of some other class which is specified during initialisation.
Right now
I'm just saying 'this.thing = new thing(this.parent, {...});' (where
this.parent is what I want it to be a subnode of), but this way I
don't get
the benefit of constraints.
--
Robin <[EMAIL PROTECTED]> JabberID:
<[EMAIL PROTECTED]>
Hostes alienigeni me abduxerunt. Qui annus est?
PGP Key 0xA99CEB6D = 5957 6D23 8B16 EFAB FEF8 7175 14D3 6485 A99C
EB6D