Topic: Angular Carousel set dynamic height

bitjuice pro asked 5 years ago


Hi,

I'm using Angular Carousel and I dynamically load the content of all carousel-item.

I need all carousel-item to have the same height, in particular, all the items should be as high as the highest. Is there a way to do it?

Thanks

Marco


Arkadiusz Idzikowski staff answered 5 years ago


You can add height input to the img tag and it should work correctly. If you want the rest of items to have height of the highest item, then you would need to do some measurements in the component ts file and then use calculated values in the height input.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 8.3.0
  • Device: PC
  • Browser: Chorme
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No