[Tree Extension] Adds field autofit to ob-tree-view-grid
authorAugusto Mauch <augusto.mauch@openbravo.com>
Mon, 17 Feb 2014 16:21:27 +0100
changeset 22510 1e1e9902d388
parent 22509 aa1a521341ed
child 22511 a34353a80b6b
[Tree Extension] Adds field autofit to ob-tree-view-grid
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-tree-view-grid.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-tree-view-grid.js	Mon Feb 17 16:20:12 2014 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-tree-view-grid.js	Mon Feb 17 16:21:27 2014 +0100
@@ -37,6 +37,14 @@
   showFilterEditor: true,
   selectionAppearance: 'checkbox',
   showSelectedStyle: true,
+
+  autoFitFieldWidths: true,
+  autoFitWidthApproach: 'title',
+  canAutoFitFields: false,
+  minFieldWidth: 75,
+  width: '100%',
+  height: '100%',
+
   // the grid will be refreshed when:
   // - The tree category is LinkToParent and
   // - There has been at least a reparent