Download & Extend

don't momentarily reduce the height of a views tab group when a new tab is chosen.

Project:Views Tabs
Version:6.x-1.x-dev
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (duplicate)

Issue Summary

Hi,

I have a views tab at the bottom of my page and clicking on an item works, but causes the scroll bar to jump to another part of the page. I'm not too familiar with javascript; any ideas where to begin to fix this?

thanks

Albert

Comments

#1

Title:clicking on a views tab causes scroll bar to jump to another part of the page» don't momentarily reduce the height of a views tab group when a new tab is chosen.
Category:bug report» feature request
Status:active» fixed

I'm seeing the reason for this now. I'll document it here in case for other people who might have the same problem.

  • My page is 1000px high, with the views tabs group being 300px high, and being the last element on the page. My browser window is 500px high.
  • I scroll to position 500px so I see the bottom 500px of my page in my browser window.
  • Now, I click on a new views tab.
  • My views tab group momentarily has a hight of about zero px, so that my entire page momentarily has a hight of 700px.
  • To accomodate viewing the last 500px of my page, the browser moves my position to 200px.
  • When the new tab becomes active and takes its screen real estate, the position remains at 200px even though the page is still 1000px high.

I'm setting this to a support request--would it be possible to not momentarily have the hight of a views tab be reduced when a new tab is chosen? Perhaps a calculation can be made and the height of the views tab group would be set to max([old chosen tab content height], [new chosen tab content height])

I'll use css for this, but it might be nice for this to be in the module's javascript.

Thanks,

Albert.

#2

Status:fixed» active

oops didn't mean to set it to fixed

#3

There was a similar issue reported in panels_tabs, which i have now moved to the tabs queue as I believe it would be easier to solve there:

#502988: Page is vertically scrolling when switching tabs

#4

Status:active» closed (duplicate)

This really does belong to the parent module tabs, so I'm going to mark as duplicate and use #502988: Page is vertically scrolling when switching tabs for any followups.

nobody click here