fix resize handling in IE 9 and better (refs #449)
This commit is contained in:
@@ -580,8 +580,8 @@ OpenLayers.Map = OpenLayers.Class({
|
|||||||
|
|
||||||
// Because Mozilla does not support the "resize" event for elements
|
// Because Mozilla does not support the "resize" event for elements
|
||||||
// other than "window", we need to put a hack here.
|
// other than "window", we need to put a hack here.
|
||||||
if (OpenLayers.String.contains(navigator.appName, "Microsoft")) {
|
if (parseFloat(navigator.appVersion.split("MSIE")[1]) < 9) {
|
||||||
// If IE, register the resize on the div
|
// If IE < 9, register the resize on the div
|
||||||
this.events.register("resize", this, this.updateSize);
|
this.events.register("resize", this, this.updateSize);
|
||||||
} else {
|
} else {
|
||||||
// Else updateSize on catching the window's resize
|
// Else updateSize on catching the window's resize
|
||||||
|
|||||||
Reference in New Issue
Block a user