The function is also called on the page load. It resizes a grey image for the remaining toolbar according to the window width and the width of the other part of the toolbar.
//Puts grey at end of toolbar
fim_width = document.getElementById("fim").offsetWidth;
document.getElementById("fim_grey_fill").style.width = pageWidth() - fim_width + 'px';
window.onresize = update_grey;
It doesn't work. It displays screwed up. It usually starts too wide and then does random things when the window is resized. If I'm lucky I may get it to land perfectly as I resize the window.
This should work. I see no reason why it doesn't. It's screwed up in Firefox and Safari. Can anyone help?
I kept it on my blog so people can see - http://crytekuk.info/forums/viewtopic.php?f=5&p=92#p92 It shouldn't hurt the visitors experience much I hope. Hopefully it will be fixed soon.