fastdom: toying around with what works and what doesn't

This commit is contained in:
jean-emmanuel 2022-01-21 01:21:22 +01:00
parent 3e06e52948
commit e7693d2277
6 changed files with 46 additions and 39 deletions

View file

@ -26,16 +26,14 @@ function checkResizes(context, force){
cachedStyles.push(style)
}
}
fastdom.mutate(()=>{
for (let i = resizedElems.length - 1; i >= 0; i--) {
resizedElems[i]._resize_widget.trigger('resize', {
width: resizedElems[i].resizedataw,
height: resizedElems[i].resizedatah,
style:cachedStyles[i],
stopPropagation: true
})
}
})
for (let i = resizedElems.length - 1; i >= 0; i--) {
resizedElems[i]._resize_widget.trigger('resize', {
width: resizedElems[i].resizedataw,
height: resizedElems[i].resizedatah,
style:cachedStyles[i],
stopPropagation: true
})
}
})
}