Changeset 7137 for branches/2.4/expressoMail1_2
- Timestamp:
- 08/30/12 18:09:20 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.4/expressoMail1_2/js/draw_api.js
r7122 r7137 4190 4190 var autocomplete = $(this)[0].element; 4191 4191 //cálculo dinâmico da largura da lista 4192 var width = (item.label ? item.label.length : (item.value ? item.value.length : (item.email ? item.email.length : 20 ))); 4193 width = width*5 + (is_ie ? 170 : 200) + 16; 4194 if (width < $(ul).width()) 4195 width = $(ul).width(); 4192 var minwidth = 400; 4193 var width = (item.label ? item.label.length : (item.value ? item.value.length : (item.mail ? item.mail.length : 30 ))); 4194 width = (is_ie ? width*2 : (is_webkit && !is_mozilla ? width*4 : width*5)) + 30; 4195 if (width < minwidth) 4196 width = minwidth; 4196 4197 ul.css({"min-width":width,"max-height" : "180px", "overflow-y" : "auto", "min-height": "30px"}); 4197 4198 var listContacts = DataLayer.render("../prototype/modules/mail/templates/listContacts.ejs", item);
Note: See TracChangeset
for help on using the changeset viewer.