Skip to content

Commit

Permalink
Update Navigator.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Jugen committed Jan 26, 2021
1 parent 7175872 commit 717d6e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/fxmisc/flowless/Navigator.java
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,9 @@ private int fillBackwardFrom(int itemIndex, double upTo) {
return fillBackwardFrom0(itemIndex, upTo);
}

// does not re-place the anchor cell
// Does replace the anchor cell, otherwise it's not included in ListModification events (see RichTextFX/issues/998)
int fillBackwardFrom0(int itemIndex, double upTo) {
double min = orientation.minY(positioner.getVisibleCell(itemIndex));
double min = orientation.minY(positioner.getVisibleCell(itemIndex))-1.0;
int i = itemIndex;
while(min > upTo && i > 0) {
--i;
Expand Down

0 comments on commit 717d6e7

Please sign in to comment.