Skip to content
Permalink
Browse files
8265669: AccumCell should not be visible
Reviewed-by: aghaisas
  • Loading branch information
Johan Vos committed Apr 26, 2021
1 parent ed080c8 commit 6b63bf5c3f4540baf6d5cb12b6e85791f725b2bb
@@ -2661,6 +2661,7 @@ private void cull() {
*/
private void releaseCell(T cell) {
if (accumCell != null && cell == accumCell) {
accumCell.setVisible(false);
accumCell.updateIndex(-1);
}
}
@@ -1305,6 +1305,18 @@ protected double computeMaxHeight(double width) {
position = newPosition;
}
}

@Test public void testAccumCellInvisible() {
VirtualFlowShim vf = createCircleFlow();
Node cell = vf.get_accumCell();
if (cell != null) assertFalse(cell.isVisible());
vf.resize(600,400);
for (int i = 0; i < 50; i++) {
vf.scrollPixels(1);
cell = vf.get_accumCell();
if (cell != null) assertFalse(cell.isVisible());
}
}
}

class GraphicalCellStub extends IndexedCellShim<Node> {

1 comment on commit 6b63bf5

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on 6b63bf5 Apr 26, 2021

Please sign in to comment.