diff --git a/examples/countries/js/example.js b/examples/countries/js/example.js index 25e5fdd5..1525d814 100644 --- a/examples/countries/js/example.js +++ b/examples/countries/js/example.js @@ -27,9 +27,6 @@ Ox.load(['Geo', 'UI'], function() { width: 256 }, { - format: function(value) { - return value.split(', ')[0]; - }, id: 'continent', operator: '+', title: 'Continent', diff --git a/source/Ox.UI/js/Map/Map.js b/source/Ox.UI/js/Map/Map.js index 5e1cb00c..72b8fcaf 100644 --- a/source/Ox.UI/js/Map/Map.js +++ b/source/Ox.UI/js/Map/Map.js @@ -877,10 +877,10 @@ Ox.Map = function(options, self) { // Google seems to sometimes set position to 'relative' if (self.$map.css('position') == 'absolute') { + google.maps.event.trigger(self.map, 'resize'); + } else { self.$map.css({position: 'absolute'}); that.resizeMap(); - } else { - google.maps.event.trigger(self.map, 'resize'); } // needed to get mouse x/y coordinates on marker mouseover,