diff options
Diffstat (limited to 'src/com/vaadin/ui/GridLayout.java')
-rw-r--r-- | src/com/vaadin/ui/GridLayout.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/vaadin/ui/GridLayout.java b/src/com/vaadin/ui/GridLayout.java index b7e92402cc..51610912d1 100644 --- a/src/com/vaadin/ui/GridLayout.java +++ b/src/com/vaadin/ui/GridLayout.java @@ -18,6 +18,7 @@ import com.vaadin.terminal.PaintException; import com.vaadin.terminal.PaintTarget; import com.vaadin.terminal.gwt.client.MouseEventDetails; import com.vaadin.terminal.gwt.client.ui.VGridLayout; +import com.vaadin.ui.GridLayout.OverlapsException; /** * <p> @@ -1074,8 +1075,9 @@ public class GridLayout extends AbstractLayout implements addComponent(newComponent); } else if (newLocation == null) { removeComponent(oldComponent); - addComponent(newComponent, oldLocation.getColumn1(), oldLocation - .getRow1(), oldLocation.getColumn2(), oldLocation.getRow2()); + addComponent(newComponent, oldLocation.getColumn1(), + oldLocation.getRow1(), oldLocation.getColumn2(), + oldLocation.getRow2()); } else { oldLocation.setComponent(newComponent); newLocation.setComponent(oldComponent); |