summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/ui/AbstractSplitPanel.java
diff options
context:
space:
mode:
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);