changeset 2843:66330d32d59f

RT-27609: [TreeTableView] Scroll bar appears while there is enough space for rendering content.
author jgiles
date Wed, 06 Mar 2013 12:56:38 +1300
parents ece1fe2f059b
children ad7ab4d353c4
files javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TableRowSkinBase.java
diffstat 1 files changed, 0 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TableRowSkinBase.java	Tue Mar 05 19:08:06 2013 +1300
+++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TableRowSkinBase.java	Wed Mar 06 12:56:38 2013 +1300
@@ -683,23 +683,6 @@
     @Override protected double computePrefWidth(double height) {
         double prefWidth = 0.0F;
 
-        boolean isIndentationRequired = isIndentationRequired();
-        if (isIndentationRequired) {
-            // Do calculations for disclosure node and indentation.
-            // Firstly, indentation
-            int indentationLevel = getIndentationLevel(getSkinnable());
-            if (! isShowRoot()) indentationLevel--;
-            final double indentationPerLevel = getIndentationPerLevel();
-            prefWidth += indentationLevel * indentationPerLevel;
-
-            // Secondl, the disclosure node width
-            Control c = getVirtualFlowOwner();
-            final double defaultDisclosureWidth = 
-                maxDisclosureWidthMap.containsKey(c) ? maxDisclosureWidthMap.get(c) : 0;
-            Node disclosureNode = getDisclosureNode();
-            prefWidth += Math.max(defaultDisclosureWidth, disclosureNode == null ? 0 : disclosureNode.prefWidth(-1));
-        }
-
         List<? extends TableColumnBase/*<T,?>*/> visibleLeafColumns = getVisibleLeafColumns();
         for (int i = 0, max = visibleLeafColumns.size(); i < max; i++) {
             TableColumnBase<T,?> tableColumn = visibleLeafColumns.get(i);