Responsive images on gallery

Created on 24 May 2023, over 1 year ago
Updated 25 May 2023, over 1 year ago

Problem/Motivation

When using galleries, often the images are there but hidden, as in: https://getbootstrap.com/docs/5.0/components/carousel/#with-indicators .

Then the logic to obtain the availableWidth in resizer.js is not valid, as the the clientwidth is 0 when resizeobserver is triggered.

💬 Support request
Status

Closed: works as designed

Version

1.3

Component

Code

Created by

🇪🇸Spain aleix

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @aleix
  • 🇳🇱Netherlands seanB Netherlands

    One solution for this would be to manually trigger a window resize event when the slide changes. I've seen the seem issue for things like popovers and dialogs. It is hard to support this out of the box, since there could be numerous libraries / events that make an invisible image appear or resize. Could you try that?

  • 🇪🇸Spain aleix

    Thank's Sean, it works.

  • Status changed to Closed: works as designed over 1 year ago
  • 🇳🇱Netherlands seanB Netherlands

    Thanks for reporting back! I will close this issue for now.

Production build 0.71.5 2024