Typo in IE6 fix made it not work quite right.
This commit is contained in:
parent
56e4364aa9
commit
fbc431f464
1 changed files with 4 additions and 9 deletions
|
@ -128,14 +128,8 @@
|
||||||
var el = document.getElementById( 'map' );
|
var el = document.getElementById( 'map' );
|
||||||
var left = getStyle( el, 'left' );
|
var left = getStyle( el, 'left' );
|
||||||
var top = getStyle( el, 'top' );
|
var top = getStyle( el, 'top' );
|
||||||
var bottom = el.old_bottom;
|
var bottom = getStyle( el, 'bottom' );
|
||||||
if( ! bottom ) {
|
var right = getStyle( el, 'right' );
|
||||||
bottom = getStyle( el, 'bottom' );
|
|
||||||
}
|
|
||||||
var right = el.old_right;
|
|
||||||
if( ! right ) {
|
|
||||||
right = getStyle( el, 'right' );
|
|
||||||
}
|
|
||||||
var width = el.old_width;
|
var width = el.old_width;
|
||||||
if( ! width ) {
|
if( ! width ) {
|
||||||
width = getStyle( el, 'width' );
|
width = getStyle( el, 'width' );
|
||||||
|
@ -168,9 +162,10 @@
|
||||||
}
|
}
|
||||||
if( top != 'auto' && bottom != 'auto' && height == 'auto' ) {
|
if( top != 'auto' && bottom != 'auto' && height == 'auto' ) {
|
||||||
el.old_height = height;
|
el.old_height = height;
|
||||||
var new_height = (pheight - el.offsetHeight - parseInt( bottom ) );
|
var new_height = (pheight - el.offsetTop - parseInt( bottom ) );
|
||||||
el.style.height = new_height + 'px';
|
el.style.height = new_height + 'px';
|
||||||
}
|
}
|
||||||
|
map.updateSize();
|
||||||
}
|
}
|
||||||
|
|
||||||
if( ie6 ) {
|
if( ie6 ) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue