Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessing an anchor leads to a slightly wrong place #103

Closed
wsw70 opened this issue Jul 23, 2020 · 1 comment
Closed

Accessing an anchor leads to a slightly wrong place #103

wsw70 opened this issue Jul 23, 2020 · 1 comment

Comments

@wsw70
Copy link

wsw70 commented Jul 23, 2020

Link to the app code: https://gitlab.com/WoJ/testmarkdown2

Describe the bug

Accessing an anchor leads to a slightly wrong place

To Reproduce

After building the app, click on the PAGE ONE tab, and then choose one of the last entries on the right

Expected behavior

Going to an anchor, I expect to see that anchor on the page, but it is slightly above - I need to scroll up to see it

Screenshots

image

image

image

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome
  • Version 84
@hawkeye64
Copy link
Member

This is the browser doing it. It will move anchor to top of screen, regardless if you have a banner showing (in which case it will be underneath and not visible).

In this case, you need to control the scrolling. I have this same similar code in all of my examples for this: https://github.com/quasarframework/quasar-ui-qcalendar/blob/dev/demo/src/layouts/Examples.vue#L245-L289

Also, notice the "onScroll" here: https://github.com/quasarframework/quasar-ui-qcalendar/blob/dev/demo/src/layouts/Examples.vue#L2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants