< prev index next >

modules/javafx.controls/src/main/java/javafx/scene/chart/LineChart.java

Print this page
rev 10014 : 8134315: [LineChart] Blurry elements since 8u60

*** 469,479 **** Node symbol = item.getNode(); if (symbol != null) { final double w = symbol.prefWidth(-1); final double h = symbol.prefHeight(-1); ! symbol.resizeRelocate(x-(w/2), y-(h/2),w,h); } } switch (getAxisSortingPolicy()) { case X_AXIS: Collections.sort(constructedPath, (e1, e2) -> Double.compare(e1.getX(), e2.getX())); --- 469,479 ---- Node symbol = item.getNode(); if (symbol != null) { final double w = symbol.prefWidth(-1); final double h = symbol.prefHeight(-1); ! symbol.resizeRelocate(snapPositionX(x)-(w/2), snapPositionY(y)-(h/2),w,h); } } switch (getAxisSortingPolicy()) { case X_AXIS: Collections.sort(constructedPath, (e1, e2) -> Double.compare(e1.getX(), e2.getX()));
< prev index next >