I made the following changes to the
api.gui.dynimage.html example to reproduce the
problem. Note that it only happens if I view the image
over a web server, if I open the page as a local file
I think the image loads fast enough to get the size
correctly.

//img = new DynImage(uimg);
img = new
DynImage('../src/lib/dynapi/images/common/arrowup.gif');
img.setBgColor('#ff0000');

Also if you add the following code after the above and
view the page over a web server, you will notice that
the image gets added to loadimages even though it's
already there. I've posted a bug report about this
also.

var str = "";
for(var i=0;i<DynImage.loadimages.length;i++) str +=
DynImage.loadimages[i].img.src + '\n';
alert(str);

--- Cameron Hart <[EMAIL PROTECTED]> wrote: > Hmm, I
don't have a straight forward example (the
> DynImage's I'm using are buried in everything else
> I'm
> working on at the moment). I'll try and come up with
> an example.
> 
> 
> --- Robert Rainwater <[EMAIL PROTECTED]> wrote: >
> 
> > I'm using IE 5.5 sp1 and the image size returned
> > from DynImage is
> > always correct when I do not pass an image size. 
> Do
> > you have an
> > example where this is not working?
> > 
> > -- 
> > // Robert Rainwater
> > 
> > On 1/17/2001, 6:23:12 AM EST, noreply wrote about
> > "[Dynapi-Dev] [Bug #129040] DynImage default image
> > size incorrect in IE5.5":
> > 
> > > Bug #129040, was updated on 2001-Jan-16 11:08
> > > Here is a current snapshot of the bug.
> > 
> > > Project: DynAPI 2
> > > Category: None
> > > Status: Open
> > > Resolution: None
> > > Bug Group: None
> > > Priority: 5
> > > Submitted by: camhart
> > > Assigned to : nobody
> > > Summary: DynImage default image size incorrect
> in
> > IE5.5
> > 
> > > Details: When creating a DynImage without
> setting
> > a size, IE5.5 always
> > > defaults to the same (incorrect) size.
> > 
> > > I'm not sure where IE5.5 is getting this size
> > from. This bug may apply to
> > > IE5 also.
> > 
> > > Follow-Ups:
> > 
> > > Date: 2001-Jan-17 03:23
> > > By: nobody
> > 
> > > Comment:
> > > It appears that the incorrect height and width
> is
> > being returned by
> > > getContentHeight and getContentWidth in
> > dynlayer.js. It to be returning a
> > > default of w=28 and h=30.
> > >
> >
>
-------------------------------------------------------
> > 
> > > For detailed info, follow this link:
> > >
> >
>
http://sourceforge.net/bugs/?func=detailbug&bug_id=129040&group_id=5757
> > 
> > > _______________________________________________
> > > Dynapi-Dev mailing list
> > > [EMAIL PROTECTED]
> > >
> >
>
http://lists.sourceforge.net/lists/listinfo/dynapi-dev
> > 
> > 
> > 
> > _______________________________________________
> > Dynapi-Dev mailing list
> > [EMAIL PROTECTED]
> >
>
http://lists.sourceforge.net/lists/listinfo/dynapi-dev
> > 
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail. 
> http://personal.mail.yahoo.com/
> 
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
>
http://lists.sourceforge.net/lists/listinfo/dynapi-dev
> 
> 


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev

Reply via email to