summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/src/com/vaadin/client/ui/VRichTextArea.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/src/com/vaadin/client/ui/VRichTextArea.java b/client/src/com/vaadin/client/ui/VRichTextArea.java
index 0a53e4505e..7f03980db3 100644
--- a/client/src/com/vaadin/client/ui/VRichTextArea.java
+++ b/client/src/com/vaadin/client/ui/VRichTextArea.java
@@ -246,7 +246,8 @@ public class VRichTextArea extends Composite implements Field, ChangeHandler,
@Override
public void setHeight(String height) {
if (height.endsWith("px")) {
- int h = Integer.parseInt(height.substring(0, height.length() - 2));
+ float h = Float
+ .parseFloat(height.substring(0, height.length() - 2));
h -= getExtraVerticalPixels();
if (h < 0) {
h = 0;
@@ -282,7 +283,7 @@ public class VRichTextArea extends Composite implements Field, ChangeHandler,
@Override
public void setWidth(String width) {
if (width.endsWith("px")) {
- int w = Integer.parseInt(width.substring(0, width.length() - 2));
+ float w = Float.parseFloat(width.substring(0, width.length() - 2));
w -= getExtraHorizontalPixels();
if (w < 0) {
w = 0;