From: Raymond I. <xw...@ya...> - 2003-04-27 16:44:16
|
Hi Doug, I've tested it and I believe this was fixed in the latest CVS verion of dynapi. Checkout the latest cvs version to see it it works. Thanks for the example. -- Raymond Irving --- Doug Melvin <do...@cr...> wrote: > Okay. The bug actually exists in IE and ns4 as well > as mozilla.. it was just > more noticable to me > as I was testing in mozilla at the time. > > The attached document demonstartes the bug. > ----- Original Message ----- > From: "Raymond Irving" <xw...@ya...> > To: "Doug Melvin" <do...@cr...> > Sent: Friday, April 25, 2003 5:54 PM > Subject: Re: [Dynapi-Dev] DynAPI Beta Release > > > > > > Please see below: > > > > --- Doug Melvin <do...@cr...> > wrote: > > > I've ported the popup widget for a contract.. > > > I'll have to bring it up to standards before > > > releasing it. > > > Right now I am working on mozilla issues.. for > > > instance, > > > the oncreate event gets fired before the layer > is > > > actually rendered.. > > > > > > So trying to use contentwidth(for instance) > onCreate > > > does not work. > > > > Could you please post (or send me) a working > example > > that shows this bug? > > > > > > -- > > Raymond Irving > > > > > I have a whole lot of free tim ethis weekend. so > I > > > suppose I can > > > finish off the basic widgets. > > > > > > ----- Original Message ----- > > > From: "Raymond Irving" <xw...@ya...> > > > To: "DynAPI-Dev" > <dyn...@li...> > > > Sent: Friday, April 25, 2003 12:40 PM > > > Subject: [Dynapi-Dev] DynAPI Beta Release > > > > > > > > > > Hello Everyone, > > > > > > > > As mentioned eariler it would nice to try and > get > > > a > > > > release of the new dynapi out the the public > as > > > soon > > > > as possible. The polls on the dynapi web site > are > > > > showing that more persons want to see what 3.0 > is > > > all > > > > about. I'm of the believe that we are closing > in > > > on a > > > > stable release but would first like to get a > beta > > > > version out to the public. Do you agree that > we > > > > release a beta 1 to the public? > > > > > > > > On another note I would just like to hear how > > > things > > > > are going on the following libraries,etc. Can > we > > > have > > > > these in for the beta release? Need more time? > > > > > > > > * The new DynArea Library? > > > > > > > > * The new Snap Library? - Have not heard from > Leif > > > for > > > > sometime now. > > > > > > > > * The new TabManager/KeyEvents > Extensions/Library? > > > > > > > > * Widgets? How far gone are you Doug? > > > > > > > > * Documentation? Any updates? > > > > > > > > * Anyone working on porting the IOElement > > > server-side > > > > codes to other platforms? > > > > > > > > > > > > -- > > > > Raymond Irving > > > > > > > > > > > > > > > > > > > > > __________________________________________________ > > > > Do you Yahoo!? > > > > The New Yahoo! Search - Faster. Easier. Bingo > > > > http://search.yahoo.com > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This sf.net email is sponsored by:ThinkGeek > > > > Welcome to geek heaven. > > > > http://thinkgeek.com/sf > > > > > _______________________________________________ > > > > Dynapi-Dev mailing list > > > > Dyn...@li... > > > > > > > > > > http://www.mail-archive.com/dyn...@li.../ > > > > > > > > > > > > > --- > > > Outgoing mail is certified Virus Free. > > > Checked by AVG anti-virus system > > > (http://www.grisoft.com). > > > Version: 6.0.476 / Virus Database: 273 - Release > > > Date: 4/24/2003 > > > > > > > > > __________________________________________________ > > Do you Yahoo!? > > The New Yahoo! Search - Faster. Easier. Bingo > > http://search.yahoo.com > > > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system > (http://www.grisoft.com). > Version: 6.0.476 / Virus Database: 273 - Release > Date: 4/24/2003 > --------------------------------- onCreate bugdynapi.library.setPath('./src/');dynapi.library.include('dynapi.api');w = new DynLayer();w.setBgColor('blue');w.setSize(130,130);w.setLocation(250,100);w.setHTML('!');w.onCreate(function(){ alert('parentlayer._created = ' + this._created + '\nparentlayer\'s Dimentions are: ' + this.getWidth() + ' By ' + this.getHeight() + '\nparentlayer\'s content\'s demensions are: ' + this.getContentWidth() + ' By ' + this.getContentHeight()); });x = new DynLayer();x.setBgColor('white');x.setSize(100,100);x.setLocation(10,10);x.setHTML('!');x.onCreate(function(){ alert('childlayer._created = ' + this._created + '\nchildlayer\'s Dimentions are: ' + this.getWidth() + ' By ' + this.getHeight() + '\nchildlayer\'s content\'s demensions are: ' + this.getContentWidth() + ' By ' + this.getContentHeight()); });w.addChild(x)dynapi.document.addChild(w);This document demonstrates the onCreate event bug.You will note that child layers get their onCreate triggered twice: one before they are rendered and once after.You will also note that the first time the child layer's oncreate is fired, the parent layer is not even rendered yet.Also: the _created variable is true, even though it is not rendered yet.dynapi.document.insertAllChildren(); __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com |