[imageBLOB] Hack to ensure the item is displayed properly in IE and Firefox
authorDavid Baz Fayos <david.baz@openbravo.com>
Thu, 28 Jul 2011 19:30:46 +0200
changeset 13338 583e489e4fcc
parent 13337 ae706b58215e
child 13339 a7a2befbb130
[imageBLOB] Hack to ensure the item is displayed properly in IE and Firefox
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-form-styles.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-form-styles.js	Thu Jul 28 18:05:26 2011 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-form-styles.js	Thu Jul 28 19:30:46 2011 +0200
@@ -403,7 +403,14 @@
   titleStyle: 'OBFormFieldLabel'
 });
 
+if (navigator.userAgent.toUpperCase().indexOf("MSIE") >= 0) { //IE hack to avoid item be 12 px below the title
+  OBImageCanvas.addProperties({
+    layoutTopMargin: -12
+  });
+}
+
 isc.OBImageCanvas.addProperties({
+  height: '0px', // Hack to avoid second line be desplaced in Firefox and IE
   zoomInCursorSrc: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/system/zoomIn.cur',
   zoomOutCursorSrc: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/system/zoomOut.cur',
   imageNotAvailableSrc: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/form/imageNotAvailable.png',