Skip to content

Commit

Permalink
Fixed navigation not center aligned (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
fuxingloh authored Nov 4, 2020
1 parent affaf14 commit 9307ee7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const options = {
### Basic Responsive Usage
- Width between 0 - 576, show 1
- Width between 576 - 768, show 2
- Width catch all, show 3
- Width fallback, show 3

```vue
<vue-horizontal-list :items="items" :options="{responsive: [{end: 576, size: 1}, {start: 576, end: 768, size: 2},{size: 3}]}">
Expand Down
4 changes: 3 additions & 1 deletion src/vue-horizontal-list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@
*/
scrollHandler() {
clearTimeout(this.scrollTimer);
//Renew timer
this.scrollTimer = setTimeout(function () {
const items = this.items.map((item, index) =>
Expand All @@ -272,6 +272,8 @@
position: absolute;
width: 100%;
height: 100%;
margin-top: -6px;
}
.vhl-btn-left, .vhl-btn-right {
Expand Down

0 comments on commit 9307ee7

Please sign in to comment.