summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/ui/AbstractSplitPanel.java
diff options
context:
space:
mode:
authorTapio Aali <tapio@vaadin.com>2012-05-31 05:30:06 +0000
committerTapio Aali <tapio@vaadin.com>2012-05-31 05:30:06 +0000
commit2e581760d056ad7038bfa5c04c6fd17c883a7d32 (patch)
tree6e768f9069df7527a7b34a6156c4ad75685c62f1 /src/com/vaadin/ui/AbstractSplitPanel.java
parente978b997047573b1497a07f77f730195e3ea467a (diff)
downloadvaadin-framework-2e581760d056ad7038bfa5c04c6fd17c883a7d32.tar.gz
vaadin-framework-2e581760d056ad7038bfa5c04c6fd17c883a7d32.zip
Optimized network usage of the split position limits of the SplitPanel (#8880).
svn changeset:23857/svn branch:6.8
Diffstat (limited to 'src/com/vaadin/ui/AbstractSplitPanel.java')
-rw-r--r--src/com/vaadin/ui/AbstractSplitPanel.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/com/vaadin/ui/AbstractSplitPanel.java b/src/com/vaadin/ui/AbstractSplitPanel.java
index ebdee17de2..586dbc81fe 100644
--- a/src/com/vaadin/ui/AbstractSplitPanel.java
+++ b/src/com/vaadin/ui/AbstractSplitPanel.java
@@ -222,8 +222,12 @@ public abstract class AbstractSplitPanel extends AbstractLayout {
final String maximumPosition = posMax + UNIT_SYMBOLS[posMaxUnit];
target.addAttribute("position", position);
- target.addAttribute("minimumPosition", minimumPosition);
- target.addAttribute("maximumPosition", maximumPosition);
+ if (minimumPosition != "0%") {
+ target.addAttribute("minimumPosition", minimumPosition);
+ }
+ if (maximumPosition != "100%") {
+ target.addAttribute("maximumPosition", maximumPosition);
+ }
if (isLocked()) {
target.addAttribute("locked", true);