...

View Full Version : Moz has problems with resizing



me'
10-03-2003, 09:42 PM
function resizethings() {
document.getElementById('e').style.height =
String(getwindowsize(true) -
document.getElementById('top').offsetHeight -
document.getElementById('head').offsetHeight) + 'px';

if (getwindowsize(false) > 400) {
document.getElementById('main').style.width = '65%';
alterlefts(false);
} else {
document.getElementById('main').style.width = '400px';
alterlefts(true);
}
}

That's the code that's called onload and onresize in my page. Basically, it's the second bit that matters, because Moz isn't displaying this properly - it's always displaying my main div at 100% rather than normally 65%.

This is my only script, so there's no element of event handling clashes.

Kor
10-04-2003, 11:04 AM
try using direct math operators, I mean, use something like width*65/100 instead of 65%....



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum