]> source.dussan.org Git - vaadin-framework.git/commitdiff
fixes #4396
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Thu, 25 Mar 2010 14:45:19 +0000 (14:45 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Thu, 25 Mar 2010 14:45:19 +0000 (14:45 +0000)
svn changeset:12103/svn branch:6.3

src/com/vaadin/terminal/gwt/client/ui/richtextarea/VRichTextArea.java

index 3dd2ebe0125d10105d9131ee0ad9ecb74b0fbcbe..e7ea12a1ed27d6e12ae39e1bb1c092ec57177bef 100644 (file)
@@ -197,6 +197,9 @@ public class VRichTextArea extends Composite implements Paintable, Field,
         } else {
             int editorHeight = getOffsetHeight() - getExtraVerticalPixels()
                     - formatter.getOffsetHeight();
+            if (editorHeight < 0) {
+                editorHeight = 0;
+            }
             rta.setHeight(editorHeight + "px");
         }
     }