Responsive images on gallery

Created on 24 May 2023, about 1 year ago
Updated 25 May 2023, about 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 about 1 year ago
  • πŸ‡³πŸ‡±Netherlands seanB Netherlands

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

Production build 0.69.0 2024