Fixed issue 25916 and fixed issue 25942: fixed some heights
authorDavid Baz Fayos <david.baz@openbravo.com>
Tue, 11 Mar 2014 19:32:02 +0100
changeset 22685 90ef75cfef8d
parent 22684 41c5bc7d35f1
child 22686 82d89b03cb26
Fixed issue 25916 and fixed issue 25942: fixed some heights
of 'Attribute Set Value' and 'Time Item' components in form and grid view
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-form-styles.css
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.css	Tue Mar 11 18:04:38 2014 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-form-styles.css	Tue Mar 11 19:32:02 2014 +0100
@@ -441,6 +441,11 @@
   background-color: #ffffcc;
 }
 
+.OBFormFieldInput_HeightHack {
+  /* The are some situations where Smartclient library ignores or misinterpret the JS 'height' property. */
+  height: 17px !important;
+}
+
 /*=======================================================================
  * Date Picker 
 =======================================================================*/
--- a/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-form-styles.js	Tue Mar 11 18:04:38 2014 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-form-styles.js	Tue Mar 11 19:32:02 2014 +0100
@@ -227,6 +227,11 @@
 
 isc.OBSearchItem.addProperties(isc.addProperties({}, OB.Styles.OBFormField.DefaultSearch));
 
+isc.OBPAttributeSearchItem.addProperties({
+  // Hack to solve issue: https://issues.openbravo.com/view.php?id=25942
+  textBoxStyle: 'OBFormFieldInput_HeightHack OBFormFieldInput'
+});
+
 isc.OBLinkItem.addProperties(isc.addProperties({}, OB.Styles.OBFormField.DefaultSearch));
 
 isc.OBLinkButtonItem.addProperties({
@@ -327,6 +332,11 @@
   height: 25
 });
 
+isc.OBTimeItem.addProperties({
+  // Hack to solve issue: https://issues.openbravo.com/view.php?id=25916
+  textBoxStyle: 'OBFormFieldInput_HeightHack OBFormFieldInput'
+});
+
 isc.OBTimeItemGrid.addProperties({
   baseStyle: 'OBFormFieldPickListCell',
   bodyStyleName: 'OBPickListBody',