Problem for Viewing Image

Hi everyone !

I have problem for viewing image in it’s real size , the first time that image is shown it’s size is default 100*100 but when page is refreshed it is right. Here is code :

   isc.Img.create
   ({
      imageType:"normal",
      src:"some URL",
      autoDraw:true,
      ID:"Image1" ,
      width:"*", 
      height:"*"
   })

It sounds like you want auto-sizing. What you’re doing will work once the image has been cached by the browser, but not before.

This has been addressed in the next version of SmartClient (5.7) which will be released shortly. In the meantime, the recommended approach is to set an explicit size on the image.

What’s your use case in this particular instance?