Error handling for onResize of the Canvas App
This commit is contained in:
1 parent
edb58b7999
commit
596eb7b59c
1 file changed
+7
-1
@@ -35,10 +35,16 @@
|
||||
loadAdvancedAlgosPlatform();
|
||||
}
|
||||
}
|
||||
function onResize(){
|
||||
if (window.canvasApp === undefined) {return}
|
||||
if (window.canvasApp.eventHandler === undefined) {return}
|
||||
window.canvasApp.eventHandler.raiseEvent('Browser Resized')
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body id="body" onload="loadCanvas()" onresize="window.canvasApp.eventHandler.raiseEvent('Browser Resized')">
|
||||
<body id="body" onload="loadCanvas()" onresize="onResize()">
|
||||
<div id="masterApp"></div>
|
||||
<div id="canvasApp"></div>
|
||||
</body>
|
||||
|
||||
Reference in new issue
Block a user