changeset 6696:34bad2c27272

RT-28153 Incorrect layout of chart with tickMarkVisible set to false for xAxis Reviewed by: jgiles
author Martin Sladecek <martin.sladecek@oracle.com>
date Fri, 11 Apr 2014 08:46:14 +0200
parents 2ff0b028e379
children d1a0b9ea32da
files modules/controls/src/main/java/javafx/scene/chart/Axis.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/modules/controls/src/main/java/javafx/scene/chart/Axis.java	Fri Apr 11 16:00:29 2014 +1200
+++ b/modules/controls/src/main/java/javafx/scene/chart/Axis.java	Fri Apr 11 08:46:14 2014 +0200
@@ -629,7 +629,7 @@
     @Override protected void layoutChildren() {
         final double width = getWidth();
         final double height = getHeight();
-        final double tickMarkLength = (getTickLength() > 0) ? getTickLength() : 0;
+        final double tickMarkLength = (isTickMarkVisible() && getTickLength() > 0) ? getTickLength() : 0;
         final boolean isFirstPass = oldLength == 0;
         // auto range if it is not valid
         final Side side = getEffectiveSide();