stage now listens for dimension changes, and updates the DOM dimensions if the widthChange or heightChange event is triggered

This commit is contained in:
Eric Rowell
2012-06-09 11:24:35 -07:00
parent e64024d3bd
commit 9697af530c
4 changed files with 52 additions and 58 deletions

View File

@@ -59,10 +59,6 @@ Test.prototype.tests = {
stage.setSize([1, 1, 10, 11]);
test(stage.getSize().width === 10 && stage.getSize().height === 11, 'stage size should be 10 x 11');
// test integer conversion
stage.setSize(300.2, 200.2);
test(stage.getSize().width === 300 && stage.getSize().height === 200, 'stage size should be 300 x 200');
layer.add(circle);
stage.add(layer);
},