Changeset 7127 for trunk/expressoMail1_2/js/draw_api.js
- Timestamp:
- 08/29/12 16:55:29 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/draw_api.js
r7113 r7127 4347 4347 var autocomplete = $(this)[0].element; 4348 4348 //cálculo dinâmico da largura da lista 4349 var width = (item.label ? item.label.length : (item.value ? item.value.length : (item.mail ? item.mail.length : 20 ))); 4350 width = (is_ie ? width*2 : width*4) + 20; 4351 if (width < $(ul).width()) 4352 width = $(ul).width(); 4349 var minwidth = 400; 4350 var width = (item.label ? item.label.length : (item.value ? item.value.length : (item.mail ? item.mail.length : 30 ))); 4351 width = (is_ie ? width*2 : (is_webkit && !is_mozilla ? width*4 : width*5)) + 30; 4352 if (width < minwidth) 4353 width = minwidth; 4353 4354 ul.css({"min-width":width,"max-height" : "180px", "overflow-y" : "auto", "min-height": "30px"}); 4354 4355 var listContacts = DataLayer.render("../prototype/modules/mail/templates/listContacts.ejs", item);
Note: See TracChangeset
for help on using the changeset viewer.