Skip to content

Commit

Permalink
fix(module: carousel): fix carousel slide width bug (#646)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisherspy committed Mar 10, 2020
1 parent 8ba62ec commit b26eb8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -6,7 +6,7 @@ import { Component, HostBinding, ViewEncapsulation } from '@angular/core';
encapsulation: ViewEncapsulation.None
})
export class CarouselSlideComponent {
@HostBinding('class.carousel-container')
@HostBinding('class.am-carousel-container')
container = true;
@HostBinding('style.width.px')
width;
Expand Down
3 changes: 2 additions & 1 deletion components/carousel/style/addon.less
Expand Up @@ -34,12 +34,13 @@ carouselslide {
box-sizing: border-box;
}

.carousel-container {
.am-carousel-container {
position: absolute;
display: inline-block;
list-style-type: none;
vertical-align: top;
height: auto;
width: 100%;
box-sizing: border-box;
}

Expand Down

0 comments on commit b26eb8c

Please sign in to comment.