Changeset 7127


Ignore:
Timestamp:
08/29/12 16:55:29 (12 years ago)
Author:
angelo
Message:

Ticket #2909 - Redimensionamento dinamico da janela auto-completar destinatario

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/js/draw_api.js

    r7113 r7127  
    43474347                                var autocomplete = $(this)[0].element; 
    43484348                                //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;                                
    43534354                                ul.css({"min-width":width,"max-height" : "180px", "overflow-y" : "auto", "min-height": "30px"}); 
    43544355                                var listContacts = DataLayer.render("../prototype/modules/mail/templates/listContacts.ejs", item); 
Note: See TracChangeset for help on using the changeset viewer.