| | 266 | //listen to movestart, moveend to disable overflow (FF bug) |
|---|
| | 267 | if (OpenLayers.Util.getBrowserName() == 'firefox') { |
|---|
| | 268 | this.map.events.register("movestart", this, function() { |
|---|
| | 269 | var currentOverflow = this.contentDiv.style.overflow; |
|---|
| | 270 | if (currentOverflow != "hidden") { |
|---|
| | 271 | this.contentDiv._oldOverflow = currentOverflow; |
|---|
| | 272 | this.contentDiv.style.overflow = "hidden"; |
|---|
| | 273 | } |
|---|
| | 274 | }); |
|---|
| | 275 | this.map.events.register("moveend", this, function() { |
|---|
| | 276 | console.log("popend"); |
|---|
| | 277 | var oldOverflow = this.contentDiv._oldOverflow; |
|---|
| | 278 | if (oldOverflow) { |
|---|
| | 279 | this.contentDiv.style.overflow = oldOverflow; |
|---|
| | 280 | this.contentDiv._oldOverflow = null; |
|---|
| | 281 | } |
|---|
| | 282 | }); |
|---|
| | 283 | } |
|---|
| | 284 | |
|---|