diff options
author | Artur Signell <artur.signell@itmill.com> | 2009-05-07 14:34:50 +0000 |
---|---|---|
committer | Artur Signell <artur.signell@itmill.com> | 2009-05-07 14:34:50 +0000 |
commit | 315088ba06f155e1dbb61dca5e686d41fcc81aad (patch) | |
tree | 016fe60da588d5f86c221c35fdb254345006ecd1 | |
parent | b36d7e04dcb55c5feb544f6355cc25019ba0d744 (diff) | |
download | vaadin-framework-315088ba06f155e1dbb61dca5e686d41fcc81aad.tar.gz vaadin-framework-315088ba06f155e1dbb61dca5e686d41fcc81aad.zip |
Fix for #2900 - Label.setContentMode() does not requestRepaint()
svn changeset:7656/svn branch:6.0
-rw-r--r-- | src/com/itmill/toolkit/ui/Label.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/itmill/toolkit/ui/Label.java b/src/com/itmill/toolkit/ui/Label.java index 4a272ed1d1..26d4d16963 100644 --- a/src/com/itmill/toolkit/ui/Label.java +++ b/src/com/itmill/toolkit/ui/Label.java @@ -372,8 +372,10 @@ public class Label extends AbstractComponent implements Property, * the New content mode of the label. */ public void setContentMode(int contentMode) { - if (contentMode >= CONTENT_TEXT && contentMode <= CONTENT_RAW) { + if (contentMode != this.contentMode && contentMode >= CONTENT_TEXT + && contentMode <= CONTENT_RAW) { this.contentMode = contentMode; + requestRepaint(); } } |