Changeset 2605 for branches/2.0/expressoMail1_2/js/draw_api.js
- Timestamp:
- 04/20/10 15:02:51 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/expressoMail1_2/js/draw_api.js
r2523 r2605 617 617 var _divScroll = document.getElementById("divScrollMain_"+numBox); 618 618 619 var bar = document.getElementById("toolbar");620 var offset = 0;621 622 619 if(!_divScroll){ 623 620 _divScroll = document.createElement("DIV"); … … 633 630 _divScroll.style.width ="99.3%"; 634 631 } 635 // Inicio: Redimensiona DIV SCROLL636 var bar = Element("toolbar");637 var offset = 0;638 if(bar.style.visibility != 'hidden')639 offset = (bar.offsetHeight ? bar.offsetHeight : bar.clientHeight);640 var screenHeight = document.body.clientHeight ? document.body.clientHeight : document.body.offsetHeight;641 var defaultHeight = screenHeight - offset;642 _divScroll.style.height = defaultHeight - 110;643 Element('content_folders').style.height = defaultHeight - (is_ie ? 165 : 150);644 // Fim: Redimensiona DIV SCROLL645 632 _divScroll.appendChild(table_element); 646 633 openTab.content_id[numBox].appendChild(_divScroll); … … 684 671 draw_footer_box(headers_msgs.num_msgs); 685 672 Element('main_table').style.display = ''; 673 if(is_ie6) // Stupid Fixing on IE6. 674 setTimeout("resizeWindow()",1); 675 else 676 resizeWindow(); 686 677 if(debug) { 687 678 var _eTime = new Date(); … … 1703 1694 1704 1695 1705 // BEGIN MAKE THE SCROLL HEIGHT1706 var bar = document.getElementById("toolbar");1707 var offset = 0;1708 if(bar.style.visibility != 'hidden')1709 offset = bar.offsetHeight ? bar.offsetHeight : bar.clientHeight;1710 1696 var div = document.createElement("DIV"); 1711 1697 div.id = "div_message_scroll_"+ID; 1712 1698 div.style.background = 'WHITE'; 1713 div.style.height = document.body.clientHeight - offset - 125;1714 content.style.height = document.body.clientHeight - offset - 90;1715 1699 div.style.overflow = "auto"; 1716 1700 div.style.width = defaultWidth - (is_ie ? 5 : 0); 1717 // END MAKE THE SCROLL HEIGHT1718 1701 table_message_others_options.appendChild(tbody_message_others_options); 1719 1702 var tr = document.createElement("TR"); … … 1839 1822 table_message.appendChild(tbody_message); 1840 1823 content.appendChild(table_message); 1824 resizeWindow(); 1841 1825 var msg_number = document.createElement('INPUT'); 1842 1826 msg_number.id = "msg_number_" + ID; … … 2361 2345 tr5.appendChild(td_body); 2362 2346 tbody_message.appendChild(tr5); 2363 // BEGIN MAKE THE SCROLL HEIGHT2364 2347 var defaultWidth = document.body.clientWidth - (is_ie ? 200 : 195); 2365 var _bar = document.getElementById("toolbar");2366 var _offset = 0;2367 if(_bar.style.visibility != 'hidden')2368 _offset = _bar.offsetHeight ? _bar.offsetHeight : _bar.clientHeight;2369 2348 var _div = document.createElement("DIV"); 2370 2349 _div.id = "div_message_scroll_"+ID; 2371 _div.style.height = document.body.clientHeight - _offset - 105;2372 content.style.height = document.body.clientHeight - _offset - 80;2373 2350 _div.style.overflow = "auto"; 2374 2351 _div.style.width = defaultWidth; 2375 // END MAKE THE SCROLL HEIGHT2376 2352 2377 2353 // Hide the contac tips and re-position the pallete color. … … 2392 2368 if(!expresso_offline) 2393 2369 draw_from_field(sel_from,tr1_1); 2370 2371 resizeWindow(); 2394 2372 return ID; 2395 2373 }
Note: See TracChangeset
for help on using the changeset viewer.