зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
04ec2e5a6b
Коммит
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();
|
||||
}
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче