diff options
Diffstat (limited to 'client/src/main/java')
-rw-r--r-- | client/src/main/java/com/vaadin/client/ui/VTextArea.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/src/main/java/com/vaadin/client/ui/VTextArea.java b/client/src/main/java/com/vaadin/client/ui/VTextArea.java index 769b1ed817..b50bd88a04 100644 --- a/client/src/main/java/com/vaadin/client/ui/VTextArea.java +++ b/client/src/main/java/com/vaadin/client/ui/VTextArea.java @@ -60,6 +60,7 @@ public class VTextArea extends VTextField implements DragImageModifier { super(DOM.createTextArea()); setStyleName(CLASSNAME); addKeyDownHandler(enterDownHandler); + getElement().getStyle().setOverflowX(Overflow.HIDDEN); } public TextAreaElement getTextAreaElement() { @@ -76,7 +77,8 @@ public class VTextArea extends VTextField implements DragImageModifier { } if (wordWrap) { getElement().removeAttribute("wrap"); - getElement().getStyle().clearOverflow(); + getElement().getStyle().clearOverflowY(); + getElement().getStyle().setOverflowX(Overflow.HIDDEN); getElement().getStyle().clearWhiteSpace(); } else { getElement().setAttribute("wrap", "off"); |