reworked text max width logic to use clipping rather than native max width functionality which scales the text (what was w3c thinking? no idea)

This commit is contained in:
Eric Rowell
2012-05-12 17:11:57 -07:00
parent 4b1403f7fe
commit 05df078295
4 changed files with 73 additions and 20 deletions

View File

@@ -1888,7 +1888,8 @@ Test.prototype.tests = {
fontStyle: 'normal',
//draggable: true,
align: 'center',
verticalAlign: 'middle'
verticalAlign: 'middle',
maxWidth: 200
});
layer.add(text);
@@ -1902,6 +1903,7 @@ Test.prototype.tests = {
test(text.getFontStyle() == 'normal', 'font style should be normal');
text.setPadding(20);
test(text.getPadding() === 20, 'padding should be 20');
test(text.getMaxWidth() === 200, 'max width should be 200');
stage.add(layer);