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

image sometimes load as 0px by 0px, white blank background #25

Open
jsznap opened this issue Aug 14, 2023 · 2 comments
Open

image sometimes load as 0px by 0px, white blank background #25

jsznap opened this issue Aug 14, 2023 · 2 comments

Comments

@jsznap
Copy link

jsznap commented Aug 14, 2023

I have a very standard implementation except i'm using Alpine-JS models. Sometimes when images load, they load with a width/height of 0px. resizing the image does not fix it. Anyone know of any reason this could happen?

@cotton123236
Copy link
Owner

When you using frameworks, make sure you excute Zoomist after elements are rendered.
Like React useEffect() hook, or Vue onMounted() lifecycle.

@holyman1010
Copy link

I also has this issue, I'm using a tab navigation component of a dashboard template(https://myrathemes.com/lunoz/layouts/vertical/ui-tabs.html). When I want place an image inside the tab, the image's width and height become 0. but if I click the tab when the page reload at the first moment. It suddenly can display normal. I've tried many times and method, just don't work. Can anyone know what cause this issue?

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

3 participants