From: Doug M. <do...@cr...> - 2001-02-07 15:47:46
|
More functions? You mean make the Layer Even bigger? ----- Original Message ----- From: "Michael Pemberton" <mp...@ph...> To: <dyn...@li...> Sent: Tuesday, February 06, 2001 5:58 PM Subject: [Dynapi-Dev] Added methods for DynDocument and DynLayer > I find that many widgets and functions (eg dargging) use layer.x+layer.w > to calculate the edge of the layer. I suggest that there be two new > methods added to the layer and coument objects that calculate this for > you. > > Here's the code: > > DynLayer.prototype.getX2=function() { return this.x+this.getWidth(); }; > DynLayer.prototype.getY2=function() { return this.y+this.getHeight(); }; > > DynLayer.prototype.getPageX2=function() { return > this.getPageX()+this.getWidth(); }; > DynLayer.prototype.getPageY2=function() { return > this.getPageY()+this.getHeight(); }; > > DynDocument.prototype.getX2=DynDocument.prototype.getX2; > DynDocument.prototype.getY2=DynDocument.prototype.getY2; > > -- > Michael Pemberton > mp...@ph... > ICQ: 12107010 > > > > > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/lists/listinfo/dynapi-dev --- Outgoing mail is certified Virus Free by AVG Free Edition http://www.grisoft.com/html/us_index.cfm Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.230 / Virus Database: 111 - Release Date: 1/25/01 |