Skip to content

Scroll position #2

Open
Open
@nathobson

Description

@nathobson

Hi.

Firstly, thanks for the great plugin. I'm using it in a project at the moment and it's all working great. Apart from one thing...

On the page where I'm using Hash Tabs, whenever I access the page, I'm automatically scrolled down to the tabs section. I can see that this is not the case on the demo page. This is a problem as the tabs are halfway down the page. I can spoof this a bit by using smoothScroll then initialising a tab ID that doesn't exist:

$(".hashtabs").hashTabs({
smoothScroll: {
enabled: true,
initialTabId: "dummy"
}
});

The problem with that is that it loads down at the tabs, then shoots up to the top of the page again, pretty jolting!

I've made a codepen with an example of being scrolled down: http://codepen.io/anon/pen/rayVpo. You'll see there's a nav and footer with the tabs in the middle of the page but you'll land of the tabs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions