Make the slippy map work properly on IE7 at last!
This commit is contained in:
parent
b92e1b0584
commit
37e74fc5cb
1 changed files with 4 additions and 6 deletions
|
@ -27,7 +27,7 @@
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
<!--
|
<!--
|
||||||
var ie6 = ! ( window.addEventListener || window.XMLHttpRequest );
|
var ie = navigator.appName.indexOf("Microsoft Internet Explorer") != -1;
|
||||||
var map;
|
var map;
|
||||||
|
|
||||||
function init(){
|
function init(){
|
||||||
|
@ -56,7 +56,7 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
document.getElementById('map_OpenLayers_ViewPort').style.position = 'absolute';
|
document.getElementById('map_OpenLayers_ViewPort').style.position = 'absolute';
|
||||||
if ( ie6 ) {
|
if ( ie ) {
|
||||||
handleResize();
|
handleResize();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -124,12 +124,10 @@
|
||||||
}
|
}
|
||||||
map.updateSize();
|
map.updateSize();
|
||||||
el.style.display = 'none';
|
el.style.display = 'none';
|
||||||
setTimeout( function() {
|
setTimeout( function() { el.style.display = ''; }, 200 );
|
||||||
el.style.display = '';
|
|
||||||
}, 200 );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ie6 ) {
|
if ( ie ) {
|
||||||
window.onresize = handleResize;
|
window.onresize = handleResize;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue