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

ng-image-slider with fixed height to 200px #168

Open
Ceddaerrix opened this issue Oct 30, 2022 · 1 comment
Open

ng-image-slider with fixed height to 200px #168

Ceddaerrix opened this issue Oct 30, 2022 · 1 comment

Comments

@Ceddaerrix
Copy link

Ceddaerrix commented Oct 30, 2022

I have the image slider within a DIV with a limited height.
Still, the ng-image-slider component remains with a 200px height, which does not render the content as expected.

<div style="width: 70%; height: 80px; text-align:center;margin:0; padding:0;">
  <ng-image-slider #nav
       [images]="imageItems"
       [infinite]="false"
       [lazyLoading]="true"
       [autoSlide]="1"
       [imageSize]="{width: '80px',height: '80px'}"
       [manageImageRatio]="true"
       slideImage="1"></ng-image-slider>
</div>

image

Is there any way to set the image-slider height?

Note: I am using "ng-image-slider": "^5.0.0" since using Angular v13

@Ceddaerrix
Copy link
Author

Ceddaerrix commented Nov 1, 2022

In order to resolve the issue, because I had no restrictions about the Angular version, I have upgraded to Angular v14 and then to "ng-image-slider": "^6.1.0"

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