5 Replies Latest reply on Dec 4, 2009 5:57 AM by Francisc

    Image width

    Francisc Level 3



      I have an Image within a Canvas.

      Both of them have width set to 100%:

      - the Canvas has that so that it will stretch as much as it's own containter allows it.

      - the Image has both width and height set to 100% so that images larger than the Canvas are resized, otherwise a huge image is displayed and scroll bars for the Canvas.


      My question is, how can I get the Image width and height, not the container's but the real width and height of the displayed image? I need this because the Image container will always be as large as the Canvas.


      The idea is to superposition a canvas with text with the same width as the image, not the Image container, the image itself.


      Thank you!