Changeset 4813 for trunk/expressoMail1_2/js/draw_api.js
- Timestamp:
- 07/19/11 14:21:15 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/draw_api.js
r4810 r4813 816 816 var tbM = getMessagesTable(thisCell); 817 817 var trM = tbM.rows; 818 var _mouse_over; 819 var _mouse_out; 820 var _cell; 818 821 for (var r=0;r<trM.length;r++) { 819 822 for (var c=0;c<trM[r].cells.length;c++) { 820 trM[r].cells[c].setAttribute("width",colSizes[tbl][c]); 823 _cell = trM[r].cells[c]; 824 _cell.setAttribute("width",colSizes[tbl][c]); 821 825 if (is_mozilla && !is_webkit) { 822 826 if (!emptyBody) { 823 document.getElementById("colgroup_main_"+numBox).childNodes[c].setAttribute("width",colSizes[tbl][c]);827 document.getElementById("colgroup_main_"+numBox).childNodes[c].setAttribute("width",colSizes[tbl][c]); 824 828 } 825 829 document.getElementById("colgroup_head_"+numBox).childNodes[c].setAttribute("width",colSizes[tbl][c]); 826 830 if (tbH.rows[0].cells[c].className=="th_resizable") { 827 trM[r].cells[c].innerHTML = trM[r].cells[c].innerHTML; // stupid fix for FF to redraw cell content 828 tbH.rows[0].cells[c].innerHTML = tbH.rows[0].cells[c].innerHTML; // another stupid fix for FF to redraw cell content 829 } 831 // lots of stupid fixes for FF to redraw cell content 832 if (_cell.childNodes[1]) { 833 _mouse_over = _cell.childNodes[1].onmouseover; 834 _mouse_out = _cell.childNodes[1].onmouseout; 835 } 836 _cell.innerHTML = trM[r].cells[c].innerHTML; 837 if (_cell.childNodes[1]) { 838 _cell.childNodes[1].onmouseover = _mouse_over; 839 _cell.childNodes[1].onmouseout = _mouse_out; 840 } 841 tbH.rows[0].cells[c].innerHTML = tbH.rows[0].cells[c].innerHTML; 842 } 830 843 } 831 844 else { 832 tbH.rows[0].cells[c].setAttribute("width", trM[r].cells[c].offsetWidth);845 tbH.rows[0].cells[c].setAttribute("width",_cell.offsetWidth); 833 846 } 834 847 }
Note: See TracChangeset
for help on using the changeset viewer.