Ignore:
Timestamp:
10/18/10 17:48:26 (14 years ago)
Author:
rafaelraymundo
Message:

Ticket #1380 - corrige o tamanho do texto nas abas das msgs encaminhadas, quando salvas.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/expressoMail1_2/js/abas.js

    r3336 r3372  
    199199                if ((children[i].nodeName === 'TD') && (children[i].id!=='border_id_0') && (children[i].id!=='border_blank')){ 
    200200                        children[i].style.width = newWidthTD; 
    201                         if (children[i].title.substring(0, (newWidthTD-44)*0.14).length == children[i].title.length) 
    202                             Element("font_"+children[i].id).innerHTML = children[i].title; 
    203                         else 
    204                             Element("font_"+children[i].id).innerHTML = children[i].title.substring(0, (newWidthTD-44)*0.14) + "..."; 
     201                        set_border_caption(children[i].id, children[i].title); 
    205202                } 
    206203        } 
    207204        return newWidthTD; 
     205} 
     206 
     207function set_border_caption(border_id, title) 
     208{ 
     209        var border = document.getElementById(border_id); 
     210        var border_width = border.clientWidth; 
     211        var caption = ""; 
     212        if (title.substring(0, (border_width-44)*0.14).length < title.length) 
     213                title = title.substring(0, (border_width-44)*0.14) + "..."; 
     214        Element("font_"+border.id).innerHTML = title; 
     215        return(title); 
    208216} 
    209217 
Note: See TracChangeset for help on using the changeset viewer.