ng-image-slider icon indicating copy to clipboard operation
ng-image-slider copied to clipboard

ng-image-slider with fixed height to 200px

Open Ceddaerrix opened this issue 2 years ago • 1 comments

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 avatar Oct 30 '22 16:10 Ceddaerrix

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"

Ceddaerrix avatar Nov 01 '22 07:11 Ceddaerrix