When launching as a thunderbird extension, with the -calendar argument

the resize function sometimes gets called before gCalendarWindow has been
initiated causing it not to work. This change should fix the problem.
This commit is contained in:
mostafah%oeone.com 2004-08-31 14:51:15 +00:00
parent 04ec2e5a6b
commit 678678acf3

View File

@ -580,7 +580,8 @@ CalendarWindow.prototype.onMouseUpCalendarViewSplitter = function calWinOnMouseU
* The resize handler, used to set the size of the views so they fit the screen.
*/
window.onresize = CalendarWindow.prototype.doResize = function calWin_doResize(){
gCalendarWindow.currentView.refresh();
if( gCalendarWindow )
gCalendarWindow.currentView.refresh();
}