Skip to content

Instantly share code, notes, and snippets.

@objectivehtml
Last active December 14, 2015 02:38
Show Gist options
  • Select an option

  • Save objectivehtml/5014630 to your computer and use it in GitHub Desktop.

Select an option

Save objectivehtml/5014630 to your computer and use it in GitHub Desktop.
$(document).ready(function() {
$('.tabs').tabs({
show: function(event, ui) {
if(ui.panel.id == 'map') {
var instance = Gmap.instances[0];
google.maps.event.trigger(instance.map, 'resize');
instance.map.setCenter(instance.center);
}
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment