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 64860e04e9
commit 6054a03c35
2 changed files with 9 additions and 0 deletions

View file

@ -1,5 +1,10 @@
# Changelog
## next
- bug fixes
- widgets not correctly drawn when hidden/shown with dynamic css
## 0.28.2
- bug fixes

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':