![Smile :)](./images/smilies/icon_smile.gif)
I have an issue with Chrome only. I have added smilies to my chat around 60px tall, which are taller than normal lines of chat (about 20px). In Internet Explorer, Firefox, and Safari, there are no problems, but in Chrome, the chat only advances 20px, not 60px like it should when thes smilies are used. As the chat goes on, it NEVER catches up in Chrome.
I've poured over "pfcclient.js" around line 1019 where messages are added to the chat.
- Code: Select all
// create a dummy div to avoid konqueror bug when setting nickmarkers
var m = document.createElement('div'); // do not setup a inline element (ex: span) because the element height will be wrong on FF2 -> scrollDown(..) will be broken
m.innerHTML = msg_html.get(recipientid);
this.colorizeNicks(m);
this.refresh_clock(m);
// finaly append this to the message list
recipientdiv.appendChild(m);
this.gui.scrollDown(tabid, m);
I've tried everything I could think of to that last line to just force the chat to the bottom of the div with no luck at all. I've tried to add a line to say 'scrollTop and set it to the top+999999 so it'd stick to the bottom but it only made the chat stick at the top. I've tried adding extra lines like this....
- Code: Select all
function toBottom()
{
alert("Scrolling to bottom ...");
window.scrollTo(0, document.body.scrollHeight);
}
And it was worthless. What could this possibly be????? I know there's gotta be something wrong with this pfclient.js.
Any ideas guys?
![Confused :?](./images/smilies/icon_confused.gif)
Thanks for reading!!!
![Very Happy :D](./images/smilies/icon_biggrin.gif)