modules/graphics/src/test/java/test/com/sun/javafx/test/objects/TestScene.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -23,10 +23,11 @@
* questions.
*/
package test.com.sun.javafx.test.objects;
+import com.sun.javafx.scene.SceneHelper;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.ObjectPropertyBase;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
@@ -77,11 +78,11 @@
public TestScene(final String name, final Parent root) {
super(root);
this.name = name;
// init size for camera to work
- impl_preferredSize();
+ SceneHelper.preferredSize(this);
}
public void set_window(final Window window) {
_windowProperty.set(window);
}