Solved small styling issue with suggestion box in quick run
authorMartin Taal <martin.taal@openbravo.com>
Thu, 21 Jul 2011 15:53:11 +0200
changeset 13234 645f8193cf87
parent 13233 e0b6ed220be4
child 13235 9f71839151a7
Solved small styling issue with suggestion box in quick run
When the suggested values takes a smaller width then the white background becomes visible on the right in the suggestion box
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/navbar/ob-quick-launch.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/navbar/ob-quick-launch.js	Thu Jul 21 15:51:42 2011 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/navbar/ob-quick-launch.js	Thu Jul 21 15:53:11 2011 +0200
@@ -130,14 +130,18 @@
         selectOnFocus: true,
         textMatchStyle: 'substring',
         width: OB.Styles.OBFormField.DefaultComboBox.quickRunWidth,
- 
+        
         // client filtering does not always work great...
         pickListProperties: {
           textMatchStyle: 'substring',
           bodyStyleName: OB.Styles.OBFormField.DefaultComboBox.pickListProperties.bodyStyleName
         },
         pickListHeaderHeight: 0,
-
+        
+        // this is to prevent this issue:
+        // http://forums.isomorphic.com/showthread.php?t=17949&goto=newpost
+        autoSizePickList: false,
+        
         getPickListFilterCriteria: function(){
           // only filter on identifier
           var criteria = {};
@@ -145,18 +149,18 @@
           return criteria;
         },
         pickListFields: [{
-          showValueIconOnly: true,
-          name: 'icon',
-          valueIcons: {
-            Process: this.nodeIcons.Process,
-            Report: this.nodeIcons.Report,
-            Form: this.nodeIcons.Form,
-            Window: this.nodeIcons.Window
-          }
-        }, {
-          name: OB.Constants.IDENTIFIER,
-          displayField: OB.Constants.IDENTIFIER,
-          valueField: OB.Constants.ID
+            showValueIconOnly: true,
+            name: 'icon',
+            valueIcons: {
+              Process: this.nodeIcons.Process,
+              Report: this.nodeIcons.Report,
+              Form: this.nodeIcons.Form,
+              Window: this.nodeIcons.Window
+            }
+          }, { 
+            name: OB.Constants.IDENTIFIER,
+            displayField: OB.Constants.IDENTIFIER,
+            valueField: OB.Constants.ID
         }],
         autoFetchData: true,
         titleOrientation: 'top',