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

html - How to custom Bootstrap grid height? -

javascript - pass values from mssql to views in node -

javascript - Understanding ExtJS Framework Syntax -