How to use it without specifying picture size in pixels?
See original GitHub issueI want to show only 1 image at the time. I want it to use all width of container, and automatically adjust height to respect image proportions. And i don’t want to specify width and height in pixels for each picture, as page has to be adaptive. I tryed this:
<Flicking :options="{panelsPerView: 1, adaptive: true}">
<div v-for="i in 8" :key="i">
<img :src="i + '.jpg'"/>
</div>
</Flicking>
But its not working. It allways shows Images collapsed to size 0x0px unless i specify pxel size. Please help me!
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Setting an image's size (in pixels) so that it won't have to be ...
In the screenshot below, what I would like to happen is for the image to fit the paper's width when I choose 'Original...
Read more >How to Understand Pixels, Resolution, and Resize Your ...
In order to calculate this resolution you just use the same formula you would use for the area of any rectangle; multiply the...
Read more >Photoshop image size and resolution
Learn how to work with image size and resolution in Photoshop. Learn about pixel dimensions and printed image resolution.
Read more >What Resolution Should Your Images Be?
Use. Pixel Size. Resolution. Preferred. File Format. Approx. File. Size. Projected in class. About 1024 pixels wide for a horizontal image; or.
Read more >how to specify image size in pixels - html
As not often is the case I use <img> elements. But, it is better practice to place the width and height in the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In that case, I think the CSS applied in the <div> element prevents height calculation of the img elements. Your div element probably always have height equal to 100% not regarding the actual contents height. Try adding
height: fit-content
, or setalign-items: flex-start
to flicking-camera elementHere’s some examples:
I’ll close this issue to mark it as resolved, please reopen it if the issue still remains!