question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

offset not working

See original GitHub issue

I’m on nuxt and want to set an offset because of my top navbar. However when I set it like this in nuxt.config.js nothing happens: ['vue-scrollto/nuxt', { offset: -50 }]

Is this a bug or am I doing something wrong?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
xyzy-webcommented, Apr 4, 2019

For some reason it seems other changes influenced the scroll behaviour, the global offset is now working.

0reactions
sixjapickcommented, Apr 4, 2019

Could you try setting the offset from the directive?

<button v-scroll-to="{ el: '#target', offset: -50 }">
    ...
</button>

That should definitely work…

It does work as a directive on the button, however it doesn’t appear to work when set as a default option.

I’m also using Nuxt with vue-scrollto as a plugin.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bootstrap col-md-offset-* not working - Stack Overflow
It works in bootstrap 4, there were some changes in documentation.We don't need prefix col-, just offset-md-3 e.g. <div class="row"> <div class="offset-md-3 ...
Read more >
Offsetting columns is not working · Issue #23360 · twbs/bootstrap
I am using Boostrap 4 Beta and facing issues with offsetting columns. Earlier i used to do offset-md-* and it was working, with...
Read more >
Offset feature not working : r/cricut - Reddit
Hey I've tried this and it hasn't worked. My offset won't let me apply. It was working fine and then it just stopped...
Read more >
OFFSET function - Microsoft Support
This article describes the formula syntax and usage of the OFFSET function in Microsoft Excel. Description. Returns a reference to a range that...
Read more >
When using OFFSET the result is not visible in AutoCAD
Drawing units do not match the input. For example the drawing units are set to mm but assumed to be m. That way...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found