changeset 3753:0c4d51bfacdf

after-merge fixes
author Martin Sladecek <martin.sladecek@oracle.com>
date Wed, 29 May 2013 16:14:02 +0200
parents 6d06aa1a268b
children 122d1f72e7c5
files javafx-ui-common/src/javafx/scene/layout/HBox.java
diffstat 1 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-common/src/javafx/scene/layout/HBox.java	Wed May 29 16:10:02 2013 +0200
+++ b/javafx-ui-common/src/javafx/scene/layout/HBox.java	Wed May 29 16:14:02 2013 +0200
@@ -202,6 +202,12 @@
     public static Insets getMargin(Node child) {
         return (Insets)getConstraint(child, MARGIN_CONSTRAINT);
     }
+    
+        private static final Callback<Node, Insets> marginAccessor = new Callback<Node, Insets>() {
+        public Insets call(Node n) {
+            return getMargin(n);
+        }
+    };
 
     /**
      * Removes all hbox constraints from the child node.
@@ -531,6 +537,15 @@
                 + (managedChildren.size()-1)*snapSpace(getSpacing());
     }
 
+    private static double sum(double[] array, int size) {
+        int i = 0;
+        double res = 0;
+        while (i != size) {
+            res += array[i++];
+        }
+        return res;
+    }
+
     @Override public void requestLayout() {
         if (performingLayout) {
             return;