- Timestamp:
- 08/16/12 17:21:30 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/newExpressoMail/expressoMail1_2/js/common_functions.js
r6997 r7043 1 1 // BEGIN: FUNCTION RESIZE WINDOW 2 var numBox = 0; 3 2 4 if (!expresso_offline) { 3 5 var _showBar = showBar; … … 37 39 function resizeWindow(){ 38 40 39 var divScrollMain = Element("divScrollMain_"+numBox); 41 if(!is_ie){ 42 var divScrollMain = Element("divScrollMain_"+numBox); 43 }else{ 44 var divScrollMain = Element("divScrollMain_"+0); 45 } 40 46 var table_message = Element("table_message"); 41 47 var content_folders = Element("content_folders"); … … 64 70 for(var i = 1; BordersArray.length > 1 && i < BordersArray.length;i++) { 65 71 var div_scroll = Element("div_message_scroll_"+BordersArray[i].sequence); 66 var div = Element(" content_id_"+BordersArray[i].sequence);72 var div = Element("ptabs_"+BordersArray[i].sequence); 67 73 68 74 if(div){ … … 77 83 } 78 84 79 if(content_folders){80 var search_div = Element("search_div");81 var contentFoldersY = findPosY(content_folders);82 content_folders.style.height = (clientHeight - (contentFoldersY + (contentFoldersY > findPosY(search_div) ? 0 : (search_div.clientHeight ? search_div.clientHeight : search_div.offsetHeight) + 5))) + "px";83 }84 85 //redim_borders(count_borders()); 85 86 resizeMailList(); 86 87 } 87 88 // END: FUNCTION RESIZE WINDOW 89 90 function resizeMailList() { 91 if (document.getElementById("table_message_header_box_"+numBox)==null) 92 return false; 93 var innerWidth = (window.innerWidth?window.innerWidth:document.body.clientWidth); 94 var scrollWidth = (innerWidth - 20 - getColumnPosition(Element("exmail_main_body"),"BODY")[0]); 95 document.getElementById("table_message_header_box_"+numBox).style.width = (scrollWidth-2)+'px'; 96 if (document.getElementById("table_resultsearch_"+numBox)==null) 97 document.getElementById("table_box").style.width = scrollWidth+'px'; 98 else 99 document.getElementById("table_resultsearch_"+numBox).style.width = scrollWidth+'px'; 100 syncColumns(); 101 //Alinhamento das colunas data e tamanho na pesquisa 102 if ( numBox > 0){ 103 if (is_mozilla && !is_webkit){ 104 $('#table_message_header_box_'+numBox).attr('style','width:99.5%'); 105 $('#colgroup_head_'+numBox).find('col').each(function(index,value){ 106 $(this).attr('width',colSizes[1][index]); 107 }); 108 $('#colgroup_main_'+numBox).find('col').each(function(index,value){ 109 $(this).attr('width',colSizes[1][index]); 110 }); 111 } 112 else if (is_webkit){ 113 $('#table_message_header_box_'+numBox).removeAttr('style'); 114 $('#table_message_header_box_'+numBox).css('table-layout','auto'); 115 } 116 else{ 117 $('#table_message_header_box_'+numBox).css('table-layout','auto'); 118 } 119 $('#table_message_header_box_'+numBox).find('td').each(function(index,value){ 120 $(this).width(colSizes[1][index]); 121 }); 122 $('#divScrollMain_'+numBox).find('tr:first').find('td').each(function(index,value){ 123 $(this).width(colSizes[1][index]); 124 }); 125 } 126 $('#table_resultsearch_'+numBox).removeAttr('style'); 127 } 88 128 89 129 var _beforeunload_ = window.onbeforeunload;
Note: See TracChangeset
for help on using the changeset viewer.