You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Shymon (JIRA)" <ji...@apache.org> on 2008/10/21 18:07:44 UTC

[jira] Created: (TAP5-300) Autocompleter on scrollable pages scrolls whole page when ArrowUp is pressed

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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Commented: (TAP5-300) Autocompleter on scrollable pages scrolls whole page when ArrowUp is pressed

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-300?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12643389#action_12643389 ] 

Howard M. Lewis Ship commented on TAP5-300:
-------------------------------------------

Seems ike Scriptaculous' autocompleter is not all that great.  Tapestry's mixin is a thin wrapper around Scriptaculous.

> 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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Commented: (TAP5-300) Autocompleter on scrollable pages scrolls whole page when ArrowUp is pressed

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
    [ 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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Commented: (TAP5-300) Autocompleter on scrollable pages scrolls whole page when ArrowUp is pressed

Posted by "Shymon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-300?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12645596#action_12645596 ] 

Shymon commented on TAP5-300:
-----------------------------

If it's JS which contains bug maybe there is possibility to attach some kind of patch?
Or maybe there is another autocomplete JS component which works fine and can be included in T5?

> 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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org