]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixes #3405: Sampler button icons messed up in IE6
authorJouni Koivuviita <jouni.koivuviita@itmill.com>
Tue, 6 Oct 2009 12:44:43 +0000 (12:44 +0000)
committerJouni Koivuviita <jouni.koivuviita@itmill.com>
Tue, 6 Oct 2009 12:44:43 +0000 (12:44 +0000)
svn changeset:9108/svn branch:6.1

WebContent/VAADIN/themes/sampler/sampler/styles.css
src/com/vaadin/terminal/gwt/client/Util.java

index 6898284749e8f38825bd9537ad5a3d757af4baad..a23092c961edb79e097de46c36a5dfbbbb3ed5f7 100644 (file)
 .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 {
 .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;
 }
 }
 .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 {
index 770214f45ea89309c752208823bea7ab2622445c..ab41de0b0c053a35851ae24319d66f824489e82a 100644 (file)
@@ -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);
     }-*/;