From 143f72a8e5d5332512d7ce2a269cdd171e43d541 Mon Sep 17 00:00:00 2001 From: euzuro Date: Mon, 6 Apr 2009 22:29:27 +0000 Subject: [PATCH] Allowing the popup-panning FF hack to be disabled as it causes bad effects when a popup contains flash content. not thrilled with the property name but can't really think of anything better myself. patch by gregers r=me (Closes #1941) git-svn-id: http://svn.openlayers.org/trunk/openlayers@9221 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Popup.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/OpenLayers/Popup.js b/lib/OpenLayers/Popup.js index f844c3aae5..99816fe8dc 100644 --- a/lib/OpenLayers/Popup.js +++ b/lib/OpenLayers/Popup.js @@ -153,6 +153,15 @@ OpenLayers.Popup = OpenLayers.Class({ padding: 0, /** + * Property: disableFirefoxOverflowHack + * {Boolean} The hack for overflow in Firefox causes all elements + * to be re-drawn, which causes Flash elements to be + * re-initialized, which is troublesome. + * With this property the hack can be disabled. + */ + disableFirefoxOverflowHack: false, + + /** * Method: fixPadding * To be removed in 3.0, this function merely helps us to deal with the * case where the user may have set an integer value for padding, @@ -327,7 +336,7 @@ OpenLayers.Popup = OpenLayers.Class({ } //listen to movestart, moveend to disable overflow (FF bug) - if (OpenLayers.Util.getBrowserName() == 'firefox') { + if (!this.disableFirefoxOverflowHack && OpenLayers.Util.getBrowserName() == 'firefox') { this.map.events.register("movestart", this, function() { var style = document.defaultView.getComputedStyle( this.contentDiv, null