Skip to content

Commit

Permalink
Grid horizontal scrolling fix for Chrome. (#8031)
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis authored and hesara committed Dec 19, 2016
1 parent cf748bf commit d7a081b
Showing 1 changed file with 8 additions and 5 deletions.
Expand Up @@ -52,13 +52,16 @@ public void scrollAfterResize() {
// second scroll to the right // second scroll to the right
scrollGridHorizontallyTo(600); scrollGridHorizontallyTo(600);


Point lolocationAfterSecondScrollcation = $(GridElement.class).first() Point locationAfterSecondScrollcation = $(GridElement.class).first()
.getCell(0, 9).getLocation(); .getCell(0, 9).getLocation();


// With the bug scrolling doesn't happen. Location should be the same as // With the bug scrolling doesn't happen. Location should be around of
// first time // the initial scrolling
Assert.assertEquals(locationAfterFirstScroll, Assert.assertEquals(locationAfterFirstScroll.getY(),
lolocationAfterSecondScrollcation); locationAfterSecondScrollcation.getY());
int delta = 5;
Assert.assertTrue(Math.abs(locationAfterFirstScroll.getX()
- locationAfterSecondScrollcation.getX()) < delta);
} }


@Override @Override
Expand Down

0 comments on commit d7a081b

Please sign in to comment.