Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

Anchor link is misaligned #15

Open
childsview opened this issue Nov 13, 2019 · 1 comment
Open

Anchor link is misaligned #15

childsview opened this issue Nov 13, 2019 · 1 comment

Comments

@childsview
Copy link

There is a problem with pages that use anchor links.
If an anchor link is set at the top of the page and an image is included in the page, the anchor link will deviate from the target id. This is because the height of the image is calculated while moving by lazyload.

Is there a way to solve this?

I can skip lazyload only for that page, but it’s a bit cumbersome.
Is there any good way?

Issue Overview

Steps to Reproduce (for bugs)

Expected Behavior

Current Behavior

Possible Solution

Screenshots / Video

Related Issues and/or PRs

@felixarntz
Copy link
Contributor

@childsview Thanks for the report!

I'm not sure whether it's possible to solve this without a framework. Any resources that aren't immediately visible can't be easily layouted unless accurate attributes to describe the layout are present, e.g. width and height. A framework like AMP can help with this, but I think this isn't something that can be fixed in the scope of this plugin unfortunately.

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

No branches or pull requests

2 participants