Reply button on the forum not auto scrolling down to field?

turbopipp wrote 10 years ago: 1

Hello, I was wondering if it's a bug or not, but when I hit the reply button, I am not scrolled down automatically to where I should write(using Opera atm).

in the comment.js script, after $create.redactor('focus.setEnd');, just add the following to fix it;

window.location.hash = '#w2';

..or your own version of scrolling down to an ID, event listener on a.comment-reply or something similar :)

Keep up the good work, guys!


david wrote 10 years ago: 1

Sounds like a browser-specific issue, it does work for me in firefox and chrome. The rest of the reply functionaly does work OK?

turbopipp wrote 10 years ago: 1

It didn't work for me in Opera, Chrome(42.0.2311.90), Safari 5(newest for windows 7) or IE. The browsers should all be up to date more or less, updated them all for debugging purposes a couple of weeks ago.

..but it did work in FF.

It looks to me that the only thing your listener does it setting the focus to the field, not scrolling down to it. And perhaps Firefox does this by default, scrolls to the focused area? I don't know, just a theory.

$create.redactor('focus.setEnd'); <--This code, not sure about Redactor, but it seems all it does is set focus. I didn't check more, so perhaps there is a focus listener on the edit field aswell. Happy bug hunting :)

As for the rest of the functions, I have not seen any other bugs :)


david wrote 10 years ago: 1

Fixed!

Sorry for the delay. Silly chrome :-/

Try 30 days of free premium.