1
0
mirror of https://github.com/elisspace/autopsy.git synced 2026-09-06 02:24:30 +00:00

fix guideLine placement when action is initiated over a DetailEventNode

This commit is contained in:
jmillman
2015-09-17 16:18:31 -04:00
parent e11ce2c3f1
commit fad8da15cb

View File

@@ -299,7 +299,8 @@ public final class EventDetailChart extends XYChart<DateTime, EventCluster> impl
setEventHandler((ActionEvent t) -> {
if (guideLine == null) {
guideLine = new GuideLine(0, 0, 0, getHeight(), getXAxis());
guideLine.relocate(clickEvent.getX(), 0);
guideLine.relocate(sceneToLocal(clickEvent.getSceneX(), 0).getX(), 0);
guideLine.endYProperty().bind(heightProperty().subtract(getXAxis().heightProperty().subtract(getXAxis().tickLengthProperty())));
getChartChildren().add(guideLine);
@@ -311,7 +312,7 @@ public final class EventDetailChart extends XYChart<DateTime, EventCluster> impl
}
});
} else {
guideLine.relocate(clickEvent.getX(), 0);
guideLine.relocate(sceneToLocal(clickEvent.getSceneX(), 0).getX(), 0);
}
});
}