Fixed issue 17884: view-grid row contents now is centered align in IE
authorDavid Baz Fayos <david.baz@openbravo.com>
Wed, 02 May 2012 21:44:37 +0200
changeset 16362 25d660a6694f
parent 16361 84a791b45fae
child 16363 5313a2151b32
Fixed issue 17884: view-grid row contents now is centered align in IE
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	Wed May 02 21:43:16 2012 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js	Wed May 02 21:44:37 2012 +0200
@@ -29,6 +29,12 @@
   ERROR_MESSAGE_PROP: isc.OBViewGrid.ERROR_MESSAGE_PROP
 });
 
+if (!isc.Browser.isIE) {
+  isc.OBViewGrid.addProperties({
+    enforceVClipping: true // To avoid apply in IE, since it moves the grid row content to the top of each cell (issue 17884)
+  });
+}
+
 // = OBViewGrid =
 // The OBViewGrid is the Openbravo specific subclass of the Smartclient
 // ListGrid.
@@ -142,7 +148,6 @@
   rowEndEditAction: 'next',
   listEndEditAction: 'next',
 
-  enforceVClipping: true,
   fixedRecordHeights: true,
 
   validateByCell: true,