Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I don't know if this happens in tabs, or in tabs panel style. When a tab is clicked instead of just switching tabs, the user is also sent back to the top of the page. I can't remember if this happens since I've created a new (partial, still under development) theme or if it happens since the beginning.
Thansk in advance!
Comment | File | Size | Author |
---|---|---|---|
#15 | vertical_scroll-502988-15.patch | 1.38 KB | evanbarter |
Comments
Comment #1
samhassell CreditAttribution: samhassell commentedI'm also seeing this behavior, and its a bit disorientating.
Comment #2
crea CreditAttribution: crea commentedI think this is a bug and it's very annoying.
Comment #3
crea CreditAttribution: crea commentedI have found related discussion:
http://groups.google.com/group/jquery-en/browse_thread/thread/e9459e53cf...
Workaround posted there is maybe ugly, but it fixed this problem for me: set tab container height. In my theme this is like:
You need to play with height to find a number that suits your case.
Comment #4
dawehnerI don't think this is a generic solution. Perhaps there are some css gurus out there to fix the issue.
Comment #5
a_c_m CreditAttribution: a_c_m commentedsubscribe.
My idea would be to set the height for the panel with a inline style, which is calculated by JS at render time.
Comment #6
smoothify CreditAttribution: smoothify commentedMoving this to tabs module, where I think the issue would be more easily solvable.
I noticed similar issues in the queues of both the CCK FieldGroup Tabs and Views Tabs:
#838598: Switching tabs causes page to scroll up and down.
#839756: don't momentarily reduce the height of a views tab group when a new tab is chosen.
I realise the following issue is related to vertical tabs in core which is entirely separate, however the patches on there may contain a hint on how to fix this behaviour in jquery ui tabs too.
#437546: Vertical Tabs: Reduce scrolling up and down
Comment #7
ceddo CreditAttribution: ceddo commentedI also have this issue, I'd really appreciate if someone could post a clean fix to this as my website needs to be finished asap! :(
Comment #8
mrfelton CreditAttribution: mrfelton commentedsubscribing. Temp fix is to set absolute height (on min-height). Not really a good fix though.
Comment #9
jdwfly CreditAttribution: jdwfly commentedMarked #839756: don't momentarily reduce the height of a views tab group when a new tab is chosen. as duplicate of this.
Comment #10
bryancasler CreditAttribution: bryancasler commentedsubscribe
Comment #11
Apfel007 CreditAttribution: Apfel007 commentedsub
Comment #12
fourmi4x CreditAttribution: fourmi4x commentedsub
Comment #13
Ed77 CreditAttribution: Ed77 commentedWhat I did (and worked fine)... I replaced the tabs.js from the tabs module, with one from the drupal 5 version of the module.
Note: In drupal 6 the tabs.js is in te Tabs module, in drupal 5 tabs.js is in jstools/tabs/tabs.js
Comment #14
zepner CreditAttribution: zepner commentedsubscribing
Comment #15
evanbarter CreditAttribution: evanbarter commentedRan in to this issue, attaching a patch with a solution based off this solution.