summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Koivuviita <jouni.koivuviita@itmill.com>2009-10-06 12:46:17 +0000
committerJouni Koivuviita <jouni.koivuviita@itmill.com>2009-10-06 12:46:17 +0000
commit59ed7c4303ac47d3f815f028e1efe5af16c75037 (patch)
tree6ad79bddf04227b3c1d891fdd628cc2e36d2ef72
parenta936b3f8278dfe19c592e20e90f85dd1a66f61ac (diff)
downloadvaadin-framework-59ed7c4303ac47d3f815f028e1efe5af16c75037.tar.gz
vaadin-framework-59ed7c4303ac47d3f815f028e1efe5af16c75037.zip
Fixes #3405: Sampler button icons messed up in IE6
svn changeset:9109/svn branch:6.2
-rw-r--r--WebContent/VAADIN/themes/sampler/sampler/styles.css16
-rw-r--r--src/com/vaadin/terminal/gwt/client/Util.java24
2 files changed, 24 insertions, 16 deletions
diff --git a/WebContent/VAADIN/themes/sampler/sampler/styles.css b/WebContent/VAADIN/themes/sampler/sampler/styles.css
index 82f9a237e2..3cb1e458f8 100644
--- a/WebContent/VAADIN/themes/sampler/sampler/styles.css
+++ b/WebContent/VAADIN/themes/sampler/sampler/styles.css
@@ -117,6 +117,13 @@
.v-app-SamplerApplication .v-horizontallayout-topbar .v-nativebutton-link:hover span {
text-decoration: underline;
}
+.v-app-SamplerApplication .v-horizontallayout-segment .v-nativebutton-next:active,
+.v-app-SamplerApplication .v-horizontallayout-segment .v-nativebutton-next.v-pressed,
+.v-app-SamplerApplication .v-horizontallayout-segment .v-nativebutton-next.v-disabled,
+.v-app-SamplerApplication .v-horizontallayout-segment .v-nativebutton-tree-switch:active,
+.v-app-SamplerApplication .v-horizontallayout-segment .v-nativebutton-tree-switch.v-pressed {
+ background-position: right bottom;
+}
.v-app-SamplerApplication .v-horizontallayout-segment .v-nativebutton,
.v-app-SamplerApplication .v-horizontallayout-segment .v-nativebutton.v-disabled,
.v-app-SamplerApplication .v-horizontallayout-segment .v-popupview {
@@ -137,13 +144,6 @@
.v-app-SamplerApplication .v-horizontallayout-segment .v-nativebutton-tree-switch {
background-position: right top;
}
-.v-app-SamplerApplication .v-horizontallayout-segment .v-nativebutton-next:active,
-.v-app-SamplerApplication .v-horizontallayout-segment .v-nativebutton-next.v-pressed,
-.v-app-SamplerApplication .v-horizontallayout-segment .v-nativebutton-next.v-disabled,
-.v-app-SamplerApplication .v-horizontallayout-segment .v-nativebutton-tree-switch:active,
-.v-app-SamplerApplication .v-horizontallayout-segment .v-nativebutton-tree-switch.v-pressed {
- background-position: right bottom;
-}
.v-app-SamplerApplication .v-horizontallayout-segment .v-nativebutton-down {
background-position: right bottom;
}
@@ -227,7 +227,7 @@
}
.v-app-SamplerApplication .v-horizontallayout-segment .v-nativebutton-next span,
.v-app-SamplerApplication .v-horizontallayout-segment .v-nativebutton-next.v-pressed span,
-.v-app-SamplerApplication .v-horizontallayout-segment .v-nativebutton-next.v-disabled span {
+.v-app-SamplerApplication .v-horizontallayout-segment .v-disabled.v-nativebutton-next span {
background-image: url(next.png);
}
.v-popupview-popup-quickjump {
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);
}-*/;