javascript - Resizing google map with setTimeout() -


i'm trying resize google map object dynamically along window/div.

why while code works fine:

https://fiddle.jshell.net/ykcg4wdv/3/

when wrap in settimeout() function in order not keep firing constantly, resize call stops working?

https://fiddle.jshell.net/ykcg4wdv/4/

also, reason, if resize the div manually - media query - second function works fine.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -