Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Bug in showcase: Img isn't showed correclty in IE 8: small in CENTER & NORMAL modes.

    Good afternoon, dear smartgwt developers!

    It's very strange bug(I use smartgwt nightly build(25/11/2010)) and it can be reproduced in showcase also(in Basics -> HTML -> Img). Images(no matter what's size it is) are shown very small in modes ImageStyle.NORMAL and ImageStyle.CENTER:

    Here is what I see in IE 8:


    Here is what I see in Firefox 3.6.12:


    Please make a fix for it. Or advise how to prevent it.

    Thank you very much in advance!

    #2
    Hi,

    I'm concerning the same problem. I'm currently developing an enterprise application with a product logo created as png file.

    Here is what I noticed so far:

    * html-img tag of compiled sources contains no width and height attribute in firefox
    * in IE8 width and height attribute was set to 16px although the Img-object in smartgwt was set to 598 x 166
    * seems to be a png - problem; jpgs were rendered as expected

    It would be nice if someone of Isomorphic can provide a solution to this because images are very essential for customizing the ui of an application

    Thanx
    Mario

    Comment


      #3
      In order to support transparent PNGs we need to use a workaround in IE that removes the ability to let an image size to it's "natural" size. Use setImageWidth and setImageHeight to explicitly provide the size.

      Comment

      Working...
      X