changeset 8048:1a0fe3d68229

[SCENEBUILDER] Fix wrap in ScrollPane : as multiple selection is no more allowed for the Wrap In ScrollPane command (see DTL-6856), there is no more need to set the pref view port height and width.
author slions
date Fri, 12 Sep 2014 11:04:54 +0200
parents 7f169b1de6c6
children 787b2e2d5c86
files apps/scenebuilder/SceneBuilderKit/src/com/oracle/javafx/scenebuilder/kit/editor/job/wrap/WrapInScrollPaneJob.java
diffstat 1 files changed, 0 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/apps/scenebuilder/SceneBuilderKit/src/com/oracle/javafx/scenebuilder/kit/editor/job/wrap/WrapInScrollPaneJob.java	Fri Sep 12 09:59:32 2014 +0200
+++ b/apps/scenebuilder/SceneBuilderKit/src/com/oracle/javafx/scenebuilder/kit/editor/job/wrap/WrapInScrollPaneJob.java	Fri Sep 12 11:04:54 2014 +0200
@@ -32,10 +32,6 @@
 package com.oracle.javafx.scenebuilder.kit.editor.job.wrap;
 
 import com.oracle.javafx.scenebuilder.kit.editor.EditorController;
-import com.oracle.javafx.scenebuilder.kit.editor.job.JobUtils;
-import com.oracle.javafx.scenebuilder.kit.fxom.FXOMObject;
-import java.util.List;
-import javafx.geometry.Bounds;
 import javafx.scene.control.ScrollPane;
 
 /**
@@ -47,13 +43,4 @@
         super(editorController);
         newContainerClass = ScrollPane.class;
     }
-
-    @Override
-    protected void modifyNewContainer(final List<FXOMObject> children) {
-        super.modifyNewContainer(children);
-
-        final Bounds unionOfBounds = WrapJobUtils.getUnionOfBounds(children);
-        JobUtils.setPrefViewportHeight(newContainer, ScrollPane.class, unionOfBounds.getHeight());
-        JobUtils.setPrefViewportWidth(newContainer, ScrollPane.class, unionOfBounds.getWidth());
-    }
 }