From 7c488fa06e7b12283bc349a9a46d34b18ad4ee6f Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Tue, 31 Mar 2009 23:56:38 +0200 Subject: [PATCH] No need for IE resize fixes. yet. --- kronolith/js/src/kronolith.js | 54 ------------------------------------------- 1 file changed, 54 deletions(-) diff --git a/kronolith/js/src/kronolith.js b/kronolith/js/src/kronolith.js index a907e5a2e..c88d39b7c 100644 --- a/kronolith/js/src/kronolith.js +++ b/kronolith/js/src/kronolith.js @@ -1111,60 +1111,6 @@ KronolithCore = { e.observe('mouseover', e.addClassName.curry('over')).observe('mouseout', e.removeClassName.curry('over')); }); } - - this._resizeIE6(); - }, - - // IE 6 width fixes (See Bug #6793) - _resizeIE6: function() - { - return; - // One width to rule them all: - // 20 label, 2 label border, 2 label margin, 16 scrollbar, - // 7 cols, 2 col border, 2 col margin - var col_width = (($('kronolithViewMonth').getWidth()-20-2-2-16)/7)-2-2; - $('kronolithViewMonth').select('.kronolithCol').invoke('setStyle', { width: col_width + 'px' }); - - // Set month dimensions. - // 6 rows, 2 row border, 2 row margin - var col_height = (($('kronolithViewMonth').getHeight()-25)/6)-2-2; - $('kronolithViewMonth').select('.kronolithViewBody .kronolithCol').invoke('setStyle', { height: col_height + 'px' }); - $('kronolithViewMonth').select('.kronolithViewBody .kronolithFirstCol').invoke('setStyle', { height: col_height + 'px' }); - - // Set week dimensions. - $('kronolithViewWeek').select('.kronolithCol').invoke('setStyle', { width: (col_width - 1) + 'px' }); - - // Set day dimensions. - // 20 label, 2 label border, 2 label margin, 16 scrollbar, 2 col border - var head_col_width = $('kronolithViewDay').getWidth()-20-2-2-16-3; - // 20 label, 2 label border, 2 label margin, 16 scrollbar, 2 col border - // 7 cols - var col_width = ((head_col_width+7)/7)-1; - $('kronolithViewDay').select('.kronolithViewHead .kronolithCol').invoke('setStyle', { width: head_col_width + 'px' }); - $('kronolithViewDay').select('.kronolithViewBody .kronolithCol').invoke('setStyle', { width: col_width + 'px' }); - $('kronolithViewDay').select('.kronolithViewBody .kronolithAllDay .kronolithCol').invoke('setStyle', { width: head_col_width + 'px' }); - - /* - if (Kronolith.conf.is_ie6) { - var tmp = parseInt($('sidebarPanel').getStyle('width'), 10), - tmp1 = document.viewport.getWidth() - tmp - 30; - $('normalfolders').setStyle({ width: tmp + 'px' }); - $('kronlithmain').setStyle({ width: tmp1 + 'px' }); - $('msglist').setStyle({ width: (tmp1 - 5) + 'px' }); - $('msgBody').setStyle({ width: (tmp1 - 25) + 'px' }); - tmp = $('dimpmain_portal').down('IFRAME'); - if (tmp) { - this._resizeIE6Iframe(tmp); - } - } - */ - }, - - _resizeIE6Iframe: function(iframe) - { - if (Kronolith.conf.is_ie6) { - iframe.setStyle({ width: $('kronolithmain').getStyle('width'), height: (document.viewport.getHeight() - 20) + 'px' }); - } }, toggleCalendar: function(elm) -- 2.11.0