Showing
1 changed file
with
3 additions
and
3 deletions
@@ -12,9 +12,9 @@ var $ = require('jquery'), | @@ -12,9 +12,9 @@ var $ = require('jquery'), | ||
12 | var swiper, | 12 | var swiper, |
13 | $brandList = $('.brand-list'); | 13 | $brandList = $('.brand-list'); |
14 | 14 | ||
15 | -var searchH = $('.newbrand-search').height(), | ||
16 | - headerH = $('.yoho-header').height(), | ||
17 | - brandSwipe = parseInt(searchH) + parseInt(headerH); | 15 | +var searchH = $('.newbrand-search').outerHeight(), |
16 | + headerH = $('.yoho-header').outerHeight(), | ||
17 | + brandSwipe = parseInt(searchH) + parseInt(headerH) - 1; | ||
18 | 18 | ||
19 | var myHammer; | 19 | var myHammer; |
20 | 20 |
-
Please register or login to post a comment