Note: Mozilla has a problem with getting width of content.. setAutosize may not function under certain circumstances.
----- Original Message ----- From: "Raymond Irving" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, September 29, 2003 3:36 PM Subject: Re: [Dynapi-Help] How to add eventListener to a DynLayer? > > --- Yanglong Zhu <[EMAIL PROTECTED]> wrote: > > > > I have another question now. > > How do you make a imgage visible when it is wider > > than the window size > > in Mozilla (1.5b, maybe the same in other versions). > > I have a very big imgage in a DynLayer like this: > > > > var lyrmaster = dynapi.document.addChild(new > > DynLayer('<img > > > src="./insertion_embed.png">',50,150,null,null,'silver')); > > > > However, only the left part of the image that fits > > in the window is > > visible, the rest of it seem to be sensed by the > > blowser judging by the > > scroll bar, but when you scroll to the right no > > image is visible there. > > The invisible part is the page's background color, > > not even the > > background of the layer (silver) is displayed. If I > > put the image naked > > on the page,like this: > > > > <img src="./insertion_embed.png"> > > > > The whole image is visible (scroll right all the way > > to the end). > > > > Is this a known problem? Or there is way to fix it? > > You can try changing the overflow property of the > layer from hidden to default by using: > > lyr.setOverflow('default'); > > or you can try using the setAutoSize(true,true) > or manualy set the lyr's width and height. > > I suspect that you need to pre-load the image. you can > do this using the dynapi.functions.getImage() > > -- > Raymond Irving > > > > Thanks. > > > > Yanglong > > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Dynapi-Help mailing list > > [EMAIL PROTECTED] > > > https://lists.sourceforge.net/lists/listinfo/dynapi-help > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dynapi-Help mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/dynapi-help > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.522 / Virus Database: 320 - Release Date: 9/29/03 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Dynapi-Help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dynapi-help