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'));
Source:stackexchange.com
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'));