Notice: The Monaca & Onsen UI Community Forum is shutting down.

For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.

Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.

How to specify different heights for each ons-carousel-item?



  • Hello,

    I’m trying to use carousel in my app. each ons-carousel-item would be created dynamically and they would have different content (images/texts) inside them.

    So, the height of each ons-carousel-item would be different.

    I was wondering if i can change the height of each ons-carousel-item based on its content?

    I’m simply experementing with this example:

    https://codepen.io/pen/?&editors=101

    Any help would be appreciated.

    Thanks in advance.



  • No working example… Please get the right link of them so we can help

    @Roozbeh-Farhadi said:

    Hello,

    I’m trying to use carousel in my app. each ons-carousel-item would be created dynamically and they would have different content (images/texts) inside them.

    So, the height of each ons-carousel-item would be different.

    I was wondering if i can change the height of each ons-carousel-item based on its content?

    I’m simply experementing with this example:

    https://codepen.io/pen/?&editors=101

    Any help would be appreciated.

    Thanks in advance.