Related to issue 19205: Values too tight to the edges in grid
authorMartin Taal <martin.taal@openbravo.com>
Sun, 12 Feb 2012 20:43:46 +0100
changeset 15477 a03579ebb79e
parent 15476 42ab557adad4
child 15478 86ac4bc5c360
Related to issue 19205: Values too tight to the edges in grid
Align calculated fields to the left also in edit mode
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js	Fri Feb 10 20:49:42 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js	Sun Feb 12 20:43:46 2012 +0100
@@ -383,7 +383,8 @@
   },
 
   getCellAlign: function (record, rowNum, colNum) {
-    if (rowNum === this.getEditRow()) {
+    var fld = this.getFields()[colNum];
+    if (!fld.clientClass && rowNum === this.getEditRow()) {
       return 'center';
     }
     return this.Super('getCellAlign', arguments);