diff options
author | Build Agent <noreply@vaadin.com> | 2012-01-31 18:34:28 +0200 |
---|---|---|
committer | Build Agent <noreply@vaadin.com> | 2012-01-31 18:34:28 +0200 |
commit | fbd4d8617b759ba7c35992c09a43a220ac151d29 (patch) | |
tree | 9f5f1563c37aa61d14fe0a2bd93683170c5bb9b0 /src/com/vaadin/ui/AbstractOrderedLayout.java | |
parent | e5b55ab465af9687524d5ba26a52df5a94600648 (diff) | |
download | vaadin-framework-fbd4d8617b759ba7c35992c09a43a220ac151d29.tar.gz vaadin-framework-fbd4d8617b759ba7c35992c09a43a220ac151d29.zip |
Synchronized 6.8 branch between svn and git.
Diffstat (limited to 'src/com/vaadin/ui/AbstractOrderedLayout.java')
-rw-r--r-- | src/com/vaadin/ui/AbstractOrderedLayout.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/vaadin/ui/AbstractOrderedLayout.java b/src/com/vaadin/ui/AbstractOrderedLayout.java index 8bba9fc46d..fc3ef5056d 100644 --- a/src/com/vaadin/ui/AbstractOrderedLayout.java +++ b/src/com/vaadin/ui/AbstractOrderedLayout.java @@ -54,7 +54,7 @@ public abstract class AbstractOrderedLayout extends AbstractLayout implements @Override public void addComponent(Component c) { // Add to components before calling super.addComponent - // so that it is available to AttachListeners + // so that it is available to AttachListeners components.add(c); try { super.addComponent(c); @@ -75,7 +75,7 @@ public abstract class AbstractOrderedLayout extends AbstractLayout implements public void addComponentAsFirst(Component c) { // If c is already in this, we must remove it before proceeding // see ticket #7668 - if (c.getParent() == this) { + if(c.getParent() == this) { removeComponent(c); } components.addFirst(c); @@ -100,9 +100,9 @@ public abstract class AbstractOrderedLayout extends AbstractLayout implements public void addComponent(Component c, int index) { // If c is already in this, we must remove it before proceeding // see ticket #7668 - if (c.getParent() == this) { + if(c.getParent() == this) { // When c is removed, all components after it are shifted down - if (index > getComponentIndex(c)) { + if(index > getComponentIndex(c)) { index--; } removeComponent(c); |