[
https://issues.apache.org/jira/browse/TAP5-300?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12645589#action_12645589
]
Howard M. Lewis Ship commented on TAP5-300:
-------------------------------------------
I've verified this in FireFox, but I don't really know what the solution is
going to look like.
> Autocompleter on scrollable pages scrolls whole page when ArrowUp is pressed
> ----------------------------------------------------------------------------
>
> Key: TAP5-300
> URL: https://issues.apache.org/jira/browse/TAP5-300
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.0.15
> Reporter: Shymon
>
> If you place autocompleter on a page longer than browser's window (page which
> has a scrollbar) and press ArrowUp key after choice list is displayed whole
> page is scrolled down such that highlighted option is on the top edge of
> browser's window. If you press ArrowDown page is scrolled back to proper
> position. Behaves the same in FF and IE.
> Maybe this is the problem:
> markPrevious: function() {
> if(this.index > 0) this.index--
> else this.index = this.entryCount-1;
> this.getEntry(this.index).scrollIntoView(true);
> },
> markNext: function() {
> if(this.index < this.entryCount-1) this.index++
> else this.index = 0;
> this.getEntry(this.index).scrollIntoView(false);
> },
> scrollIntoView true for previous and false for next?
> It's very annoying, and makes autocompleter practically unusable on
> production quality pages.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]