diff options
author | Anna Koskinen <anna@vaadin.com> | 2012-12-14 16:11:25 +0200 |
---|---|---|
committer | Anna Koskinen <anna@vaadin.com> | 2012-12-14 16:11:25 +0200 |
commit | 72943f25d0aa5e936cefabe58f1858ff12c94894 (patch) | |
tree | d75215378741da1e62d7d564d68633da812bdf65 /server | |
parent | d10e758c693d652dd5767ca53dab4bef52ff5a1a (diff) | |
download | vaadin-framework-72943f25d0aa5e936cefabe58f1858ff12c94894.tar.gz vaadin-framework-72943f25d0aa5e936cefabe58f1858ff12c94894.zip |
Colorpicker IE fixes
Change-Id: I9b1e42a75175eff4a01560db0a13865e253b72d5
Diffstat (limited to 'server')
-rw-r--r-- | server/src/com/vaadin/ui/components/colorpicker/ColorPickerGradient.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/server/src/com/vaadin/ui/components/colorpicker/ColorPickerGradient.java b/server/src/com/vaadin/ui/components/colorpicker/ColorPickerGradient.java index ddd61f37b2..1bff71f0f7 100644 --- a/server/src/com/vaadin/ui/components/colorpicker/ColorPickerGradient.java +++ b/server/src/com/vaadin/ui/components/colorpicker/ColorPickerGradient.java @@ -52,9 +52,6 @@ public class ColorPickerGradient extends AbstractComponent implements /** The y-coordinate. */ private int y = 0; - /** The background color. */ - private Color backgroundColor; - /** * Instantiates a new color picker gradient. * @@ -65,7 +62,7 @@ public class ColorPickerGradient extends AbstractComponent implements */ public ColorPickerGradient(String id, Coordinates2Color converter) { registerRpc(rpc); - getState().id = id; + addStyleName(id); // width and height must be set here instead of in theme, otherwise // coordinate calculations fail getState().width = "220px"; @@ -103,7 +100,6 @@ public class ColorPickerGradient extends AbstractComponent implements * the new background color */ public void setBackgroundColor(Color color) { - backgroundColor = color; getState().bgColor = color.getCSS(); } |