1
0
Fork 0

Canvas GUI: check if canvas is valid on resize.

This commit is contained in:
Thomas Geymayer 2013-07-27 22:22:38 +02:00
parent b8d6997497
commit 078e422faa

View file

@ -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 ~ "]");