changeset 7763:4c2f04e9e358

RT-38189 CategoryAxis.tickLabelRotation doesn't work properly with autoRanging Reviewed by: jgiles
author Martin Sladecek <martin.sladecek@oracle.com>
date Fri, 22 Aug 2014 10:15:57 +0200
parents 191aab1d374d
children ba193bd5c30a
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 Aug 22 10:12:43 2014 +0200
+++ b/modules/controls/src/main/java/javafx/scene/chart/Axis.java	Fri Aug 22 10:15:57 2014 +0200
@@ -978,7 +978,7 @@
     }
 
     final double getEffectiveTickLabelRotation() {
-        return Double.isNaN(effectiveTickLabelRotation) ? getTickLabelRotation() : effectiveTickLabelRotation;
+        return !isAutoRanging() || Double.isNaN(effectiveTickLabelRotation) ? getTickLabelRotation() : effectiveTickLabelRotation;
     }
 
     /**