Canvas GUI: check if canvas is valid on resize.
This commit is contained in:
parent
b8d6997497
commit
078e422faa
1 changed files with 3 additions and 0 deletions
|
@ -208,6 +208,9 @@ var Window = {
|
|||
},
|
||||
onResize: func()
|
||||
{
|
||||
if( me['_canvas'] == nil )
|
||||
return;
|
||||
|
||||
for(var i = 0; i < 2; i += 1)
|
||||
{
|
||||
var size = me.get("content-size[" ~ i ~ "]");
|
||||
|
|
Loading…
Reference in a new issue