changeset 1284:9def6759a1f2

RT-21735: Canvas Scale and Size do not sync
author "Joseph Andresen<joseph.andresen@oracle.com>"
date Tue, 12 Jun 2012 09:33:09 -0700
parents 97b7b1b4a358
children 00a63ce77e97
files javafx-ui-common/src/javafx/scene/canvas/Canvas.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-common/src/javafx/scene/canvas/Canvas.java	Mon Jun 11 13:49:29 2012 -0700
+++ b/javafx-ui-common/src/javafx/scene/canvas/Canvas.java	Tue Jun 12 09:33:09 2012 -0700
@@ -251,7 +251,9 @@
     @Deprecated
     @Override
     public BaseBounds impl_computeGeomBounds(BaseBounds bounds, BaseTransform tx) {
-        return new RectBounds(0f, 0f, (float) getWidth(), (float) getHeight());
+        bounds = new RectBounds(0f, 0f, (float) getWidth(), (float) getHeight());  
+        bounds = tx.transform(bounds, bounds);
+        return bounds;
     }
 
     /**