SfGallery dosen't set width and height.
Here my component, sets default width and height (422x664). Same for thumbs (160x160 default values)
<SfGallery
v-if="productGallery"
:images="productGallery"
:imageWidth="500"
:imageHeight="500"
:thumbWidth="100"
:thumbHeight="100"
enableZoom
/>
Any suggestion? Thanks5 Replies
hi @espoge π , are you using storefrontUI 1 or 2?
hi @.rohrig storefrontUI 1
Hey @espoge - looks like a bug indeed, I'll create a fix ASAP, unless you would like to contribute? π
In the meantime, you can try to use the CSS variables for setting width and height:
--gallery-image-width
and --gallery-image-height
.@espoge the bug was created, you can track the progress here: https://github.com/vuestorefront/storefront-ui/issues/2798
GitHub
[BUG] Cannot set width and height to SfGallery images and thumbnail...
Describe the Bug Sizes passed via props to imageHeight and imageWidth, alongside thumbnailWidth and thumbnailHeight are not working - sizes are not changing on the images. Expected behavior Width a...
@aniamusial very good, thanks