From 533e3baa52b42092a49e841abf76909c967eac69 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 22 Dec 2010 18:19:47 +0000 Subject: [PATCH] trigger resize for map --- build/js/ox.ui.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build/js/ox.ui.js b/build/js/ox.ui.js index f5f4f52..d605bfd 100644 --- a/build/js/ox.ui.js +++ b/build/js/ox.ui.js @@ -7675,6 +7675,13 @@ requires }); }; + that.triggerResize = function() { + Ox.print('---- triggerResize'); + var center = self.map.getCenter(); + google.maps.event.trigger(self.map, 'resize'); + self.map.setCenter(center); + } + that.zoom = function(value) { self.map.setZoom(value); };