css: trigger resize event when css changes geometry or display (#272)

This commit is contained in:
bordun 2018-04-03 09:01:26 +02:00
parent 84a80acd4c
commit 7f51b1224d
2 changed files with 9 additions and 0 deletions

View file

@ -492,6 +492,10 @@ class Widget extends EventEmitter {
case 'css':
this.setContainerStyles(['css'])
this.onPropChanged('color')
var re = /width|height|display/
if (re.test(oldPropValue) || re.test(this.getProp('css'))) {
resize.check(this.container)
}
return
case 'color':