Gordon McCreight
Gordon McCreight

Reputation: 2659

How do I keep a textarea scrolled to the top in Firefox 4, like in previous Firefox versions?

Firefox 4 automatically scrolls a textarea to its bottom if the content exceeds the viewable size. Previous versions of Firefox didn't do that.

Is there something, perhaps an about:config option, that I can tweak to make it behave like it used to?

Upvotes: 1

Views: 124

Answers (1)

Paul Sweatte
Paul Sweatte

Reputation: 24617

Ah, yes. With the focus() call you would get that behavior. See http://bugzilla.mozilla.org/show_bug.cgi?id=353539 for the reason Firefox 4 does that. It looks like webkit puts the caret at the beginning of the text on focus, not at the end. Opera has the same (buggy) behavior Firefox used to have: the caret goes at the end, but is not scrolled into view

Upvotes: 0

Related Questions