Changeset 3525


Ignore:
Timestamp:
11/19/10 16:41:32 (13 years ago)
Author:
rafaelraymundo
Message:

Ticket #1189 - Assunto truncado exibe HTML entity. Ajuste na visualizacao do titulo das abas.

Location:
branches/2.2/expressoMail1_2
Files:
2 edited

Legend:

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

    r3372 r3525  
    144144                borderTitle = borderTitle.substring(0, resize*0.08); 
    145145 
    146         td.innerHTML = "<table width=100% border=0 cellspacing=0 cellpadding=0><tr><td id=font_border_id_" + ID+" class='font-menu' width=*>" + borderTitle + "</td><td width=1px><img onmousedown='javascript:return false' style='cursor:pointer' onclick=delete_border('" + ID + "','false') src='templates/"+template+"/images/close_button.gif'></td></tr></table>"; 
     146        td.innerHTML = "<div style='width:100%;border:0;padding:0;'>\n\ 
     147                            <div id='font_border_id_" + ID+"' class='font-menu' style='width:*;'>" + 
     148                                borderTitle + 
     149                            "</div>\n\ 
     150                            <div style='width:1px;float:left;clear:right;'>\n\ 
     151                                <img onmousedown='javascript:return false' style='cursor:pointer' onclick=delete_border('" + ID + "','false') src='templates/"+template+"/images/close_button.gif'/>\n\ 
     152                            </div>\n\ 
     153                        </div>"; 
    147154 
    148155        bb = document.getElementById("border_blank"); 
     
    199206                if ((children[i].nodeName === 'TD') && (children[i].id!=='border_id_0') && (children[i].id!=='border_blank')){ 
    200207                        children[i].style.width = newWidthTD; 
    201                         set_border_caption(children[i].id, children[i].title); 
     208                        set_border_caption(children[i].id, children[i].title, newWidthTD); 
    202209                } 
    203210        } 
     
    205212} 
    206213 
    207 function set_border_caption(border_id, title) 
    208 { 
    209         var border = document.getElementById(border_id); 
    210         var border_width = border.clientWidth; 
     214function set_border_caption(border_id, title, border_width) 
     215{ 
     216        var border = document.getElementById(border_id); 
     217        if (border_width == null) 
     218        { 
     219            border_width = border.clientWidth; 
     220        } 
    211221        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) + "..."; 
     222        Element("font_"+border.id).style.width = (border_width - 25)+'px'; 
    214223        Element("font_"+border.id).innerHTML = title; 
    215224        return(title); 
  • branches/2.2/expressoMail1_2/templates/default/main.css

    r3421 r3525  
    118118.font-menu 
    119119{ 
     120    color: #000; 
     121} 
     122 
     123.font-menu-sel 
     124{ 
     125        color:#0000FF; 
     126} 
     127 
     128.font-menu, .font-menu-sel { 
     129    float: left; 
     130    clear: left; 
     131    overflow: hidden; 
     132    white-space: nowrap; 
     133    padding-left: 5px; 
     134    margin-right: 5px; 
    120135    text-decoration: none; 
    121136    text-align: center; 
    122     color: #000; 
    123 } 
    124  
    125 .font-menu-sel 
    126 { 
    127     text-decoration: none; 
    128     text-align: center; 
    129         color:#0000FF; 
    130137} 
    131138 
Note: See TracChangeset for help on using the changeset viewer.