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

Ansible warning on jinja2 braces on when -

Parsing a protocol message from Go by Java -

html - How to custom Bootstrap grid height? -