]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixes #1750
authorJoonas Lehtinen <joonas.lehtinen@itmill.com>
Wed, 28 May 2008 15:51:55 +0000 (15:51 +0000)
committerJoonas Lehtinen <joonas.lehtinen@itmill.com>
Wed, 28 May 2008 15:51:55 +0000 (15:51 +0000)
svn changeset:4682/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/ui/IEmbedded.java

index 36cb9420ffcd1b3283a8e8030fe08354948359b1..aa9192fab891013a3859c87de6be14fef33ddc74 100644 (file)
@@ -32,7 +32,20 @@ public class IEmbedded extends HTML implements Paintable {
         if (uidl.hasAttribute("type")) {
             final String type = uidl.getStringAttribute("type");
             if (type.equals("image")) {
-                setHTML("<img src=\"" + getSrc(uidl, client) + "\"/>");
+                String w = uidl.getStringAttribute("width");
+                if (w != null) {
+                    w = " width=\"" + w + "\" ";
+                } else {
+                    w = "";
+                }
+                String h = uidl.getStringAttribute("height");
+                if (h != null) {
+                    h = " height=\"" + h + "\" ";
+                } else {
+                    h = "";
+                }
+                setHTML("<img src=\"" + getSrc(uidl, client) + "\"" + w + h
+                        + "/>");
             } else if (type.equals("browser")) {
                 if (browserElement == null) {
                     setHTML("<iframe width=\"100%\" height=\"100%\" frameborder=\"0\" src=\""