From: Jani Laakso Date: Fri, 1 Feb 2008 11:51:19 +0000 (+0000) Subject: Fixed gridlayout API calls. X-Git-Tag: 6.7.0.beta1~5117 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f66d433474b831feabd3bf78c6fb50f09d20e268;p=vaadin-framework.git Fixed gridlayout API calls. svn changeset:3699/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/tests/BasicRandomTest.java b/src/com/itmill/toolkit/tests/BasicRandomTest.java index 8eac734448..c0b08fe394 100644 --- a/src/com/itmill/toolkit/tests/BasicRandomTest.java +++ b/src/com/itmill/toolkit/tests/BasicRandomTest.java @@ -270,8 +270,8 @@ public class BasicRandomTest extends com.itmill.toolkit.Application implements } else if (container instanceof GridLayout) { final GridLayout gl = (GridLayout) container; if (j == 0) { - final int x = rand.nextInt(gl.getWidth()); - final int y = rand.nextInt(gl.getHeight()); + final int x = rand.nextInt(gl.getColumns()); + final int y = rand.nextInt(gl.getRows()); gl.removeComponent(x, y); gl.addComponent(c, x, y); } else { @@ -355,8 +355,8 @@ public class BasicRandomTest extends com.itmill.toolkit.Application implements } gl.setCaption("GridLayout_" + caption); gl.setDescription(gl.getCaption()); - for (int x = 0; x < gl.getWidth(); x++) { - for (int y = 0; y < gl.getHeight(); y++) { + for (int x = 0; x < gl.getColumns(); x++) { + for (int y = 0; y < gl.getRows(); y++) { gl.addComponent(getExamplePicture("x=" + x + ", y=" + y), x, y); }