]> source.dussan.org Git - vaadin-framework.git/commitdiff
Do not hide handle as it causes IE8 problems (#14412)
authorArtur Signell <artur@vaadin.com>
Wed, 20 Aug 2014 11:18:58 +0000 (14:18 +0300)
committerVaadin Code Review <review@vaadin.com>
Wed, 20 Aug 2014 12:01:22 +0000 (12:01 +0000)
Change-Id: I2b981c00bf1ef3b9e1e0ccd1cdd3678016b11d14

client/src/com/vaadin/client/ui/VSlider.java

index bc314e031401b9b1ee8e9665c78fcd9512eb5970..86e5ef129d57ed8ac8fde4fd8342652be4a11b0b 100644 (file)
@@ -22,7 +22,6 @@ import com.google.gwt.dom.client.Element;
 import com.google.gwt.dom.client.Style.Display;
 import com.google.gwt.dom.client.Style.Overflow;
 import com.google.gwt.dom.client.Style.Unit;
-import com.google.gwt.dom.client.Style.Visibility;
 import com.google.gwt.event.dom.client.KeyCodes;
 import com.google.gwt.event.logical.shared.ValueChangeEvent;
 import com.google.gwt.event.logical.shared.ValueChangeHandler;
@@ -122,7 +121,6 @@ public class VSlider extends SimpleFocusablePanel implements Field,
         // Hide initially
         smaller.getStyle().setDisplay(Display.NONE);
         bigger.getStyle().setDisplay(Display.NONE);
-        handle.getStyle().setVisibility(Visibility.HIDDEN);
 
         sinkEvents(Event.MOUSEEVENTS | Event.ONMOUSEWHEEL | Event.KEYEVENTS
                 | Event.FOCUSEVENTS | Event.TOUCHEVENTS);
@@ -254,9 +252,6 @@ public class VSlider extends SimpleFocusablePanel implements Field,
 
         // clear unnecessary opposite handle attribute
         handle.getStyle().clearProperty(oppositeHandleAttribute);
-
-        // Restore visibility
-        handle.getStyle().setVisibility(Visibility.VISIBLE);
     }
 
     @Override