Skip to content

Commit 040dabf

Browse files
committed
fix(slidebox): prevent resize when hidden
Closes #2817
1 parent b3c086e commit 040dabf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: js/views/sliderView.js

+5
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ ionic.views.Slider = ionic.views.View.inherit({
4242

4343
function setup() {
4444

45+
// do not setup if the container has no width
46+
if (!container.offsetWidth) {
47+
return;
48+
}
49+
4550
// cache slides
4651
slides = element.children;
4752
length = slides.length;

0 commit comments

Comments
 (0)