• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

Scrolling issue in Chrome only for new messages

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
1 post • Page 1 of 1

Scrolling issue in Chrome only for new messages

Postby jhpikel » Mon Oct 22, 2012 12:21 am

Thanks in advance for reading. :)

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? :?


Thanks for reading!!! :D
jhpikel
New member
 
Posts: 1
Joined: Mon Oct 22, 2012 12:08 am
Top

Post a reply
1 post • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 66 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
cron
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub