1
0
Fork 0

Canvas API: allow passing image size as vector

This commit is contained in:
Thomas Geymayer 2013-03-09 14:02:10 +01:00
parent 72a1a0047e
commit bf3cd83c61

View file

@ -784,9 +784,14 @@ var Image = {
return me;
},
# Set size of image element
setSize: func(width, height)
#
# @param width
# @param height
# - or -
# @param size ([width, height])
setSize: func
{
me._node.setValues({size: [width, height]});
me._node.setValues({size: _arg2valarray(arg)});
return me;
}
};