A
Alokaiβ€’2y ago
espoge

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? Thanks
5 Replies
rohrig
rohrigβ€’2y ago
hi @espoge πŸ‘‹ , are you using storefrontUI 1 or 2?
espoge
espogeOPβ€’2y ago
hi @.rohrig storefrontUI 1
Aneczku
Aneczkuβ€’2y ago
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.
Aneczku
Aneczkuβ€’2y ago
@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...
espoge
espogeOPβ€’2y ago
@aniamusial very good, thanks
Want results from more Discord servers?
Add your server