score:0

managed to work around the issue by using the following line of code. its a bit hacky, but it works in this situation.

window.dispatchevent(new event('resize'));

Related Query

More Query from same tag