Scroll row into view when tabbing through item/tags box

Using a hack (focusing the proceeding row) for now. Not sure what's
causing this.
This commit is contained in:
Dan Stillman 2012-01-10 19:51:01 -05:00
parent 2a102577d1
commit 68f3da2c10
2 changed files with 26 additions and 2 deletions

View File

@ -2345,7 +2345,19 @@
}
next[0].click();
this.ensureElementIsVisible(next[0]);
// DEBUG: next[0] is always equal to the target element,
// but for some reason it's necessary to scroll to the next
// element when moving forward for the target element to
// be fully in view
if (!back && next[0].parentNode.nextSibling) {
var visElem = next[0].parentNode.nextSibling;
}
else {
var visElem = next[0];
}
this.ensureElementIsVisible(visElem);
return true;
]]>
</body>

View File

@ -652,7 +652,19 @@
}
next[0].click();
this.ensureElementIsVisible(next[0]);
// DEBUG: next[0] is always equal to the target element,
// but for some reason it's necessary to scroll to the next
// element when moving forward for the target element to
// be fully in view
if (!back && next[0].parentNode.nextSibling) {
var visElem = next[0].parentNode.nextSibling;
}
else {
var visElem = next[0];
}
this.ensureElementIsVisible(visElem);
return true;
]]>
</body>