/ Published in: jQuery
If you are struggling against some problems with google maps and tabs be aware that, in order to avoid problems, jQuery sets the width & height of every hidden element to Zero.
To fix this problem all you have to do is trigger the resize event and the map will be working as it should. To trigger the event all you need to do is.
To fix this problem all you have to do is trigger the resize event and the map will be working as it should. To trigger the event all you need to do is.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$('#tabs').tabs({ fx: { opacity: 'toggle', duration: 1000 }, show: function (event, ui) { google.maps.event.trigger(map, 'resize'); } });