No window resize event is triggered
hornta opened this issue · comments
Cab we have window resize event to be triggered when the size of changed?
Thanks for your issue. Could you please elaborate on what you want to achieve and what doesn't work?
Hi. I solved my problem by just triggering a resize event after I changed the viewport size. I initially thought karma-viewport was already dispatching a resize event but I guess I could just do it myself.
karma-viewport
runs your tests in an iframe
and resizes the iframe
:
karma-viewport/src/adapter/viewport.ts
Lines 200 to 203 in 869d82c
We could dispatch a custom resize
event, as I'm not sure if there's an easier solution.