Skip to content

Commit

Permalink
fix: remove overflow hidden from hooper root element
Browse files Browse the repository at this point in the history
closes: #23
  • Loading branch information
abdelrahman3d committed Jan 25, 2019
1 parent fa51371 commit 759f62b
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions src/Hooper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,17 @@
'is-rtl': $settings.rtl,
}"
>
<ul
class="hooper-track"
:class="{ 'is-dragging': isDraging }"
ref="track"
@transitionend="onTransitionend"
:style="trackTransform"
>
<slot></slot>
</ul>

<div class="hooper-list">
<ul
class="hooper-track"
:class="{ 'is-dragging': isDraging }"
ref="track"
@transitionend="onTransitionend"
:style="trackTransform"
>
<slot></slot>
</ul>
</div>
<slot name="hooper-addons"></slot>
<div class="hooper-liveregion hooper-sr-only" aria-live="polite" aria-atomic="true">
{{ `Item ${currentSlide + 1} of ${slidesCount}` }}
Expand Down Expand Up @@ -227,7 +228,7 @@ export default {
// init methods
init () {
// get the element direction if not explicitly set
if (this.defaults.rtl !== null) {
if (this.defaults.rtl === null) {
this.defaults.rtl = getComputedStyle(this.$el).direction === 'rtl';
}
this.slides = Array.from(this.$refs.track.children);
Expand Down Expand Up @@ -521,13 +522,17 @@ export default {
<style>
.hooper {
position: relative;
overflow: hidden;
box-sizing: border-box;
width: 100%;
}
.hooper * {
box-sizing: border-box;
}
.hooper-list {
overflow: hidden;
width: 100%;
height: 100%;
}
.hooper-track {
display: flex;
box-sizing: border-box;
Expand Down

0 comments on commit 759f62b

Please sign in to comment.