SimplePortal

Development => Bugs => Fixed or Bogus Bugs => Topic started by: telemus on December 31, 2012, 12:39:03 AM

Title: shoutbox, reverse order, custom smileys causes bad scrolling in some browsers
Post by: telemus on December 31, 2012, 12:39:03 AM
Hello all,

Hopefully this is posted in the correct place.

I will start this off by mentioning that this issue only appears to happen in FireFox and Google Chrome -- NOT in Internet Explorer 9
I've recently ran into an issue since I've added more custom smileys to my shoutbox.
I will try to explain this to the best of my knowledge.

After I added the new smileys, the shoutbox randomly scrolls up just enough to where it cuts off 2-3 lines in the shoutbox. (Attachment #1) so I have to manually scroll it back down to see what was said. --which this issue only shows up when smileys are put into the shoutbox. If there are no smileys, there are no issues..

After I send a message, the shoutbox will stay at the bottom, but then randomly go back up 2-3 lines again.
So it's a constant battle, and it started when I added smileys.
The only way I know how to actually fix it is to move to IE and IE is reallllly bad :(
Does anyone know how this can be fixed for Chrome / Firefox?

If someone needs a test account to view this problem, just let me know. I would love to get this fixed  :)

Thank you in advance
Title: Re: Shoutbox scrolling up randomly?
Post by: telemus on December 31, 2012, 12:42:19 AM
To add, I reversed the order back to default and the issue does not exist.
It has something to do with it being in reverse order. but I really love reverse order and everyone has gotten used to it.
Title: Re: Shoutbox scrolling up randomly?
Post by: telemus on December 31, 2012, 01:19:20 AM
After doing some more troubleshooting, it appears that MAYBE the scrollHeight is being called before the images are fully loaded which is causing an issue with it being able to scroll all the way down..


Code: [Select]
if ($shoutbox['reverse'])
echo '
var objDiv = document.getElementById("shouts_', $shoutbox['id'], '");
objDiv.scrollTop = objDiv.scrollHeight;';


Me and a friend brainstorming

but it seems the scrollHeight is being called before the images are actually loaded? if that makes any sense
Title: Re: Shoutbox scrolling up randomly?
Post by: TinMan on December 31, 2012, 10:47:35 AM
Did this happen before you added the new smileys?  Not sure if it will help but after adding new smileys, you may try to empty the file cache in forum maintenance.
Title: Re: Shoutbox scrolling up randomly?
Post by: telemus on December 31, 2012, 01:45:35 PM
well, I wouldn't think that would be the case. It only happens in reverse order (which is what I want to use)

I moved back to normal to where the new shouts are on the top and the issue is gone (without clearing cache)

Thanks for responding btw!
Title: Re: Shoutbox scrolling up randomly?
Post by: telemus on January 04, 2013, 11:59:35 PM
anyone have the slightest idea?
Title: Re: Shoutbox scrolling up randomly?
Post by: telemus on January 09, 2013, 11:17:14 AM
Does anyone even have this issue with smileys  + reverse order? I don't currently have a test forum to see if this was something caused by me or this is actually a bug?..

Any response would be appreciated  :D
Title: Re: Shoutbox scrolling up randomly?
Post by: phantomm on January 10, 2013, 08:02:47 AM
I tried to reproduce this error, but for me everything works fine
Title: Re: Shoutbox scrolling up randomly?
Post by: telemus on February 06, 2013, 08:11:37 AM
Strange....

Thanks for your response Phantomm..
I guess I'll build a new forum and see if I can figure out what's causing my issue.
Title: Re: Shoutbox scrolling up randomly?
Post by: AngelinaBelle on March 11, 2013, 03:41:11 PM
telemus, you might be onto something.
But this one is difficult to reproduce.

I will move it into bugs for now. I have changed the subject line to be a little more descriptive.
Please fix it if I have done this wrong.

Thanks
Title: Re: shoutbox, reverse order, custom smileys causes bad scrolling in some browsers
Post by: Infernus on March 12, 2013, 12:32:18 AM
I have had this issue. I guess it has to do with smileys.
Title: Re: shoutbox, reverse order, custom smileys causes bad scrolling in some browsers
Post by: telemus on July 16, 2013, 10:03:17 PM
I'm sorry for bumping this old thread. I noticed 1800 views on this thread so I wanted to update what I have done to fix this until they fix the bug.

I set the shouts to display to 10. Just enough not to have a scroll bar. This has fixed my issue, the problem is if the shoutbox is half way active things get pushed into the history pretty quickly. This was really the best fix I could come up with.

I hope it helps someone else.
Title: Re: shoutbox, reverse order, custom smileys causes bad scrolling in some browsers
Post by: [SiNaN] on August 14, 2014, 03:41:00 PM
Another solution I can suggest is to set the line-height for the shoutbox text to be high enough for your smileys. You can also try to make sure that all images are loaded before doing the scroll but it's probably not worth the effort that requires.
SimplePortal 2.3.8 © 2008-2024, SimplePortal