Strange Float Bug

Associate
Joined
20 Aug 2003
Posts
2,446
Location
London
Hi,

I got this strange bug, when I click the link (newsletter) it floats the browser to the top left hand corder of the screen when the browser is not filling the screen.

I had to fix few float/margin bugs in the IE6 for the http://www.winston.nl website.
If you click the link (newsletter) under Club with your browser resized, so it doesn't fill the screen.

Office computer with WinXP was fine and also friend tested on Mac (FF) it was fine.

I'm using WinXp SP2, 1680x1050" LCD.
 
This happens to me too [XP/FF].

It's not a layout float/margin/IE6 bug; its almost certainly something to do with the site's jquery implementation, as nothing else can affect anything outside the viewport.

I notice that the Newsletter link is the only one to have a title specified in the <a> element. That may either be the culprit, or may point to the core of the problem.
 
If it was jquery, it should affect all the links.

Could this be the problem?

<script language="JavaScript" type="text/javascript">
function maximizeWindow() {
if (parseInt(navigator.appVersion)>3) {
if (navigator.appName=="Netscape") {
if (top.screenX>0 || top.screenY>0) top.moveTo(0,0);

}
else {
top.moveTo(-4,-4);
}
}
}
maximizeWindow() ;
</script>

I hate working on other people's code :( .... can't change anything until i get to the office tomorrow.
 
If it was jquery, it should affect all the links.
Could this be the problem?

[code snipped]
Actually, you're right - that looks more suspect. My knowledge of javascript is wafer-thin, though, so that's about as far as I can go. If it helps, however, the Firefox Error console brings up two identical warnings when the link is clicked:

Warning: Error in parsing value for property 'width'. Declaration dropped.
Source File: http://www.winston.nl/winston-css/template.css
Line: 15

Warning: Error in parsing value for property 'width'. Declaration dropped.
Source File: http://www.winston.nl/winston-css/template.css
Line: 23


[...] I hate working on other people's code :( ...
This I completely understand. I occasionally have to work on the front end of a fairly large website that's so badly designed/coded, the CSS is over 170KB. One hundred and seventy. In one sheet. :eek:
 
Last edited:
Back
Top Bottom