import com.google.gwt.event.dom.client.KeyCodes;
import com.google.gwt.user.client.DOM;
import com.vaadin.client.ui.grid.Escalator.AbstractRowContainer;
+import com.vaadin.client.ui.grid.ScrollbarBundle.Direction;
import com.vaadin.shared.ui.grid.ScrollDestination;
/**
"Cannot cancel edit: EditorRow is not in edit mode");
}
hideOverlay();
+ grid.getEscalator().setScrollLocked(Direction.VERTICAL, false);
state = State.INACTIVE;
}
protected void show() {
if (state == State.ACTIVATING) {
state = State.ACTIVE;
+ grid.getEscalator().setScrollLocked(Direction.VERTICAL, true);
showOverlay(grid.getEscalator().getBody().getRowElement(rowIndex));
}
}
import org.junit.Before;
import org.junit.Test;
+import org.openqa.selenium.NoSuchElementException;
import com.vaadin.tests.components.grid.basicfeatures.GridBasicClientFeaturesTest;
selectMenuPath("Component", "State", "Editor row", "Edit row 100");
assertNotNull(getEditorRow());
}
+
+ @Test(expected = NoSuchElementException.class)
+ public void testVerticalScrollLocking() throws Exception {
+ selectMenuPath("Component", "State", "Editor row", "Edit row 5");
+ getGridElement().getCell(200, 0);
+ }
}