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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user