Bug 717878 - Enable scrolling single-line text inputs; r=kats

This commit is contained in:
Jim Chen 2013-10-26 14:34:51 -04:00
parent 1c031e4458
commit 92a7206249

View File

@ -4645,12 +4645,14 @@ var BrowserEventHandler = {
* - It has overflow 'auto' or 'scroll'
* - It's a textarea
* - It's an HTML/BODY node
* - It's a text input
* - It's a select element showing multiple rows
*/
if (checkElem) {
if ((elem.scrollTopMax > 0 || elem.scrollLeftMax > 0) &&
(this._hasScrollableOverflow(elem) ||
elem.mozMatchesSelector("html, body, textarea")) ||
(elem instanceof HTMLInputElement && elem.mozIsTextField(false)) ||
(elem instanceof HTMLSelectElement && (elem.size > 1 || elem.multiple))) {
scrollable = true;
break;