< prev index next >

modules/graphics/src/main/java/javafx/stage/Window.java

Print this page

        

*** 65,74 **** --- 65,75 ---- import com.sun.javafx.tk.Toolkit; import javafx.beans.property.BooleanProperty; import javafx.beans.property.SimpleBooleanProperty; import static com.sun.javafx.FXPermissions.ACCESS_WINDOW_LIST_PERMISSION; + import com.sun.javafx.scene.NodeHelper; import com.sun.javafx.scene.SceneHelper; /** * <p>
*** 795,805 **** // Fix for RT-15432: we should update new Scene's stylesheets, if the // window is already showing. For not yet shown windows, the update is // performed in doVisibleChanging() if (isShowing()) { ! newScene.getRoot().impl_reapplyCSS(); if (!widthExplicit || !heightExplicit) { SceneHelper.preferredSize(getScene()); adjustSize(true); } --- 796,806 ---- // Fix for RT-15432: we should update new Scene's stylesheets, if the // window is already showing. For not yet shown windows, the update is // performed in doVisibleChanging() if (isShowing()) { ! NodeHelper.reapplyCSS(newScene.getRoot()); if (!widthExplicit || !heightExplicit) { SceneHelper.preferredSize(getScene()); adjustSize(true); }
*** 1192,1202 **** * This can be replaced by listening for the onShowing/onHiding events * Note: This method MUST only be called via its accessor method. */ private void doVisibleChanging(boolean visible) { if (visible && (getScene() != null)) { ! getScene().getRoot().impl_reapplyCSS(); } } /* * This can be replaced by listening for the onShown/onHidden events --- 1193,1203 ---- * This can be replaced by listening for the onShowing/onHiding events * Note: This method MUST only be called via its accessor method. */ private void doVisibleChanging(boolean visible) { if (visible && (getScene() != null)) { ! NodeHelper.reapplyCSS(getScene().getRoot()); } } /* * This can be replaced by listening for the onShown/onHidden events
< prev index next >