Skip to content

Commit

Permalink
fixed an issue with the contour chart z axis layout
Browse files Browse the repository at this point in the history
  • Loading branch information
ennerf committed Jun 28, 2023
1 parent 3faf547 commit cde3c4b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ protected void layoutZAxis(final Axis localZAxis) {
zAxisNode.getProperties().put(Zoomer.ZOOMER_OMIT_AXIS, Boolean.TRUE);

if (localZAxis.getSide().isHorizontal()) {
zAxisNode.setLayoutX(50);
// zAxisNode.setLayoutX(50); // TODO: why was the layout modified manually w/ managed=true? (ennerf)
gradientRect.setX(0);
gradientRect.setWidth(localZAxis.getWidth());
gradientRect.setHeight(20);
Expand All @@ -332,7 +332,7 @@ protected void layoutZAxis(final Axis localZAxis) {
parent.getChildren().add(gradientRect);
}
} else {
zAxisNode.setLayoutY(50);
// zAxisNode.setLayoutY(50); // TODO: why was the layout modified manually w/ managed=true? (ennerf)
gradientRect.setWidth(20);
gradientRect.setHeight(localZAxis.getHeight());
gradientRect.setFill(new LinearGradient(0, 1, 0, 0, true, NO_CYCLE, getColorGradient().getStops()));
Expand Down

0 comments on commit cde3c4b

Please sign in to comment.