danzen / zimjs

ZIM JavaScript Canvas Framework - Code Creativity! Interactive Media For All.
Other
507 stars 47 forks source link

Label.labelWidth change issue. #32

Closed mojoco closed 4 years ago

mojoco commented 5 years ago

The size is not updated ! To fix them, I think you need simply call 'setSize()', inside the 'defineProperty'.. I hope this help !

danzen commented 5 years ago

var label = new Label("THIS IS A TEST TO SEE IF WRAPPING WORKS").pos(20,20); label.labelWidth = 100; I tried this and it worked... did you do a stage.update() afterwards? We can certainly go in and make updates if we need to - can you show some code perhaps so we can double check things. Thanks!