details:   https://code.openbravo.com/erp/devel/pi/rev/003cc8c257f7
changeset: 22810:003cc8c257f7
user:      David Baz Fayos <david.baz <at> openbravo.com>
date:      Tue Apr 01 21:11:15 2014 +0200
summary:   Related to issue 26092: Checkboxes are now always left-aligned in 
grid view
even after column resizing

details:   https://code.openbravo.com/erp/devel/pi/rev/c0811054ce65
changeset: 22811:c0811054ce65
user:      David Baz Fayos <david.baz <at> openbravo.com>
date:      Tue Apr 01 21:13:44 2014 +0200
summary:   Related to issue 26092: inputs are now always centered while editing 
records in the grid

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
 |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (25 lines):

diff -r 9e49204adcd4 -r c0811054ce65 
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
     Mon Mar 17 17:58:11 2014 +0530
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
     Tue Apr 01 21:13:44 2014 +0200
@@ -886,7 +886,11 @@
         func = this.getGridSummaryFunction(fld),
         isSummary = record && (record[this.groupSummaryRecordProperty] || 
record[this.gridSummaryRecordProperty]);
     if (!fld.clientClass && rowNum === this.getEditRow()) {
-      return 'center';
+      if (fld.editorType === 'OBCheckboxItem') {
+        return isRTL ? isc.Canvas.RIGHT : isc.Canvas.LEFT;
+      } else {
+        return isc.Canvas.CENTER;
+      }
     }
 
     if (isSummary && func === 'count') {
@@ -3317,8 +3321,6 @@
 
     this.view.isEditingGrid = true;
 
-    record[this.recordBaseStyleProperty] = this.baseStyleEdit;
-
     // also called in case of new
     var form = this.getEditForm();
 

------------------------------------------------------------------------------
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to