When embedding an ajax paging view into a panels page the browser does not scroll back to the top of the view when paging.

Ex.
User scroll to the bottom of the pager. They see the pager and click on the "next" link. AJAX magic happens and the next views display is rendered out. Normally the browser jumps back to the top of the view. However in panels the browser window remain unmoved from it's current spot and you have to scroll back to the top of the view.

Thoughts?

*I'm not sure if this should be in the views or panels issue que, so let me know if I should change it.

Comments

bryancasler’s picture

Here is a full D7 website zipped up. It includes the entire folder structure, a copy of the DB and login credentials for UID 1.
http://minus.com/mbS2oj8

It contains....
Drupal 7.7
Ctools 7.x-1.0-beta1
Devel 7.x-1.2
Panels 7.x-3.0-alpha3
Panels Everywhere 7.x-1.0-alpha1
Views 7.x-3.0-rc1
(Theme) Versatile 7.x-1.1

I used devel to generate several hundred nodes. I then used views to create a content pane displaying those nodes. In the view I enabled ajax paging. In panels I enabled the page "Default site template" and added the content pane we just created. Now the homepage is this content pane that displays a long listing of nodes with ajax paging. Scroll to the bottom and page through, notice that your browser stays centered on the pager and does not return to the top of the view after each page.

bryancasler’s picture

Priority: Normal » Major

So I did further testing and this is definitely a views problem.

Site setup
Drupal 7.7 (Jul 27)
Bartik Theme (Jul 27)
Ctools 7.x-1.0-rc1 (Jul 28)
Views 7.x-3.0-rc1 (Jun 17)

4 steps to reproduce this bug
Enable the included frontpage view.
http://awesomescreenshot.com/044hl4z5e

Edit the view to use AJAX paging.
http://awesomescreenshot.com/083hl5652

Navigate to /frontpage.

Page through the view.

Notice how the browser stays focused on the pager and does not reset to the top of the view.

--

I also tried this setup with (Views 7.x-3.x-dev from Jul 29). Nothing changed.

elda32’s picture

I'm having the same problem here with the latest (end of September) dev versions of Panels and Views.

bryancasler’s picture

Project: Views (for Drupal 7) » Panels

Maybe this is a panels problem? Since it's been three months, I'm switching the project que to get some additional feedback from panels folks about the possible root cause of this.

aschiwi’s picture

Project: Panels » Views (for Drupal 7)
Status: Active » Closed (duplicate)
Issue tags: +dvcs11

This is not a problem limited to Panels, I can reproduce this with a brand new Drupal installation and an Ajax View. Let's move this back to Views and mark this as duplicate of http://drupal.org/node/1233334, even though this one was first.

bryancasler’s picture

Glad this is getting some attention. Thanks for the duplicate catch aschiwi.

aschiwi’s picture

Happy to help and yay for having this thing fixed at last :)