Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

item:3 not work with autoWidth:true #281

Open
BrachiWeiss opened this issue Oct 30, 2024 · 0 comments
Open

item:3 not work with autoWidth:true #281

BrachiWeiss opened this issue Oct 30, 2024 · 0 comments

Comments

@BrachiWeiss
Copy link

BrachiWeiss commented Oct 30, 2024

Hi,
I use a carousel with a setting of autoWidth: true,
and items: 3,
And it doesn't work.
dots are shown as the number of components and not (the number of components/3)
How can I arrange it to work?
Attached is a link to a sample code.

https://stackblitz.com/edit/angular-ivy-phtrhv?file=src%2Fapp%2Fapp.component.ts,src%2Fapp%2Fapp.component.html,src%2Fapp%2Fapp.component.css

The need to use autoWidth: true,
is from 2 things-

  1. The width of each element is not correct and they overlap each other.
  2. I present the carousel inside PRIMENG's TAB.
    Then the carousel sometimes gets each element width 0 and they appear on top of each other.
    Thank you for your answer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant