Use the parent property: this.parent.getWidth() cya Pascal Bestebroer ([EMAIL PROTECTED]) Software ontwikkelaar Oberon Informatiesystemen b.v. http://www.oibv.com > -----Oorspronkelijk bericht----- > Van: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]Namens Jorge L�pez > Verzonden: donderdag 14 december 2000 7:47 > Aan: [EMAIL PROTECTED] > Onderwerp: [Dynapi-Help] Widget Question > > > How can I access parent layer width and height : > > FlowLayer = function() { > this.padding = 1; > this.actY = 0; > this.actX = 0; > } > > FlowLayer.prototype = new DynLayer() > FlowLayer.prototype.flowChild = function(Layer) { > this.addChild(Layer) > Layer.moveTo(this.actX,this.actY) > Layer.setWidth(this.getWidth()) // is this o.k? I am > triying to se > the same as parent width. > this.actY=Layer.getHeight()+this.padding > > } > > thanks. > Jorge C. > > _______________________________________________ > Dynapi-Help mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/mailman/listinfo/dynapi-help > _______________________________________________ Dynapi-Help mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/mailman/listinfo/dynapi-help
