summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui/AbstractTextField.java
diff options
context:
space:
mode:
authorBogdan Udrescu <bogdan@vaadin.com>2014-07-02 18:29:56 +0300
committerVaadin Code Review <review@vaadin.com>2014-07-28 12:51:52 +0000
commit236293303bff740619a95131d5360bdbfe021c95 (patch)
tree23e6569fff7f283f9eb304ace4ba49fc4345ca02 /server/src/com/vaadin/ui/AbstractTextField.java
parente7632140cfe81062f1f81408c643e722661e60b5 (diff)
downloadvaadin-framework-236293303bff740619a95131d5360bdbfe021c95.tar.gz
vaadin-framework-236293303bff740619a95131d5360bdbfe021c95.zip
TextArea size get reset when css resize is set (#14080)
Listen to MouseUp event on the <textarea> and notify the state with the width and height if changed. Add com.vaadin.client.Util.Size to manipulates the css width/height. Change-Id: I96a308658d2877f1f6c05feaa7840a268bb06709
Diffstat (limited to 'server/src/com/vaadin/ui/AbstractTextField.java')
-rw-r--r--server/src/com/vaadin/ui/AbstractTextField.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/server/src/com/vaadin/ui/AbstractTextField.java b/server/src/com/vaadin/ui/AbstractTextField.java
index e0318ddf2b..9293d38119 100644
--- a/server/src/com/vaadin/ui/AbstractTextField.java
+++ b/server/src/com/vaadin/ui/AbstractTextField.java
@@ -147,6 +147,18 @@ public abstract class AbstractTextField extends AbstractField<String> implements
try {
+ // Sets the height set by the user when resize the <textarea>.
+ String newHeight = (String) variables.get("height");
+ if (newHeight != null) {
+ setHeight(newHeight);
+ }
+
+ // Sets the width set by the user when resize the <textarea>.
+ String newWidth = (String) variables.get("width");
+ if (newWidth != null) {
+ setWidth(newWidth);
+ }
+
if (variables.containsKey(TextFieldConstants.VAR_CURSOR)) {
Integer object = (Integer) variables
.get(TextFieldConstants.VAR_CURSOR);