N
Nathan Sokalski
I have one of the following functions called every 10 milliseconds to keep a
part of my document correctly sized (the first is for IE, the second is for
other browsers such as Firefox):
function
SetTitleWidth(){document.getElementById('divTitle').style.width=(document.documentElement.clientWidth+document.documentElement.scrollLeft)+'px';}
function
SetTitleWidth(){document.getElementById('divTitle').style.width=(window.innerWidth+window.pageXOffset)+'px';}
When used with Firefox, the <div> is resized correctly, but a <span> tag
with text, which is nested inside the <div>, gets the right end of it
chopped off whe the window is enlarged. There is no problem when the window
is made smaller. This problem does not occur in IE (IE6 is the only browser
I have had a chance to test the application in other than FF). I am assuming
this is a bug in Firefox, because if you attempt to select the text, or
resize the window to a smaller size, or maximize the window, the chopped off
text reappears. Is there any workaround anybody knows of?
part of my document correctly sized (the first is for IE, the second is for
other browsers such as Firefox):
function
SetTitleWidth(){document.getElementById('divTitle').style.width=(document.documentElement.clientWidth+document.documentElement.scrollLeft)+'px';}
function
SetTitleWidth(){document.getElementById('divTitle').style.width=(window.innerWidth+window.pageXOffset)+'px';}
When used with Firefox, the <div> is resized correctly, but a <span> tag
with text, which is nested inside the <div>, gets the right end of it
chopped off whe the window is enlarged. There is no problem when the window
is made smaller. This problem does not occur in IE (IE6 is the only browser
I have had a chance to test the application in other than FF). I am assuming
this is a bug in Firefox, because if you attempt to select the text, or
resize the window to a smaller size, or maximize the window, the chopped off
text reappears. Is there any workaround anybody knows of?