Skip to content

Commit

Permalink
fix(slidebox): prevent resize when hidden
Browse files Browse the repository at this point in the history
Closes #2817
  • Loading branch information
adamdbradley committed Apr 13, 2015
1 parent b3c086e commit 040dabf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/views/sliderView.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ ionic.views.Slider = ionic.views.View.inherit({

function setup() {

// do not setup if the container has no width
if (!container.offsetWidth) {
return;
}

// cache slides
slides = element.children;
length = slides.length;
Expand Down

0 comments on commit 040dabf

Please sign in to comment.