From: Pascal B. <pa...@dy...> - 2001-02-24 13:56:33
|
yes, the setWidth/Height check for that (if <0 it sets 0) but I think a layer should be set by default to size (0,0) not set to the contentwidth/height. It would then always be possible to call the contentwidth/height methods to retrieve those values.. but this should be done by the user, not as default. Pascal Bestebroer pa...@dy... http://www.dynamic-core.net > -----Oorspronkelijk bericht----- > Van: dyn...@li... > [mailto:dyn...@li...]Namens Michael Pemberton > Verzonden: zaterdag 24 februari 2001 14:38 > Aan: dyn...@li... > Onderwerp: Re: [Dynapi-Dev] a few hours for only 2 lines of code.. damn! > > > what if we want a width / height of 0? > > is it possible to use -1 to indicate an automatic value? > > Pascal Bestebroer wrote: > > > Now why does this not happen in dynacore? well, because there > the this.w and > > this.h default value is not null but 0. > > -- > Michael Pemberton > mp...@ph... > ICQ: 12107010 > > > > > > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/lists/listinfo/dynapi-dev > |