mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 22:55:23 +00:00
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:
parent
04ec2e5a6b
commit
678678acf3
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user