aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouni Koivuviita <jouni.koivuviita@itmill.com>2009-10-06 12:44:43 +0000
committerJouni Koivuviita <jouni.koivuviita@itmill.com>2009-10-06 12:44:43 +0000
commitef15149661bc25fa31d058ef0a5166326814b368 (patch)
tree3332203474f3d39199e24e7c6f6e8b8f94fb594b /src
parent077f97fed8a35b462c363ef1247b2035fed1f739 (diff)
downloadvaadin-framework-ef15149661bc25fa31d058ef0a5166326814b368.tar.gz
vaadin-framework-ef15149661bc25fa31d058ef0a5166326814b368.zip
Fixes #3405: Sampler button icons messed up in IE6
svn changeset:9108/svn branch:6.1
Diffstat (limited to 'src')
-rw-r--r--src/com/vaadin/terminal/gwt/client/Util.java24
1 files changed, 16 insertions, 8 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/Util.java b/src/com/vaadin/terminal/gwt/client/Util.java
index 770214f45e..ab41de0b0c 100644
--- a/src/com/vaadin/terminal/gwt/client/Util.java
+++ b/src/com/vaadin/terminal/gwt/client/Util.java
@@ -230,14 +230,22 @@ public class Util {
/*-{
el.attachEvent("onload", function() {
var src = el.src;
- if (src.indexOf(".png")<1) return;
- var w = el.width||16;
- var h = el.height||16;
- el.src =blankImageUrl;
- el.style.height = h+"px";
- el.style.width = w+"px";
- el.style.padding = "0px";
- el.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+src+"', sizingMethod='scale')";
+ if (src.indexOf(".png") < 1) return;
+ var w = el.width || 16;
+ var h = el.height || 16;
+ if(h==30 || w==28) {
+ setTimeout(function(){
+ el.style.height = el.height + "px";
+ el.style.width = el.width + "px";
+ el.src = blankImageUrl;
+ },10);
+ } else {
+ el.src = blankImageUrl;
+ el.style.height = h + "px";
+ el.style.width = w + "px";
+ }
+ el.style.padding = "0";
+ el.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+src+"', sizingMethod='crop')";
},false);
}-*/;