diff --git a/static/js/cart/select-coupon.js b/static/js/cart/select-coupon.js index cfa0c46..3dc98fa 100644 --- a/static/js/cart/select-coupon.js +++ b/static/js/cart/select-coupon.js @@ -18,12 +18,13 @@ var page = 1, var conponTmpl = Handlebars.compile($('#tmpl-coupon').html()), $newCoupon = $('#new-coupon'); +var winH = $(window).height(); + // conponNotAvaliableTmpl = Handlebars.compile($('#tmpl-coupon-not-avaliable').html()), function fixedLayOut() { - var $null = $('.null'); - - var winH = $(window).height(), + var $null = $('.null'), + navH = $('.nav-title').height(), nullH = $null.height(); if ($null.length === 0) { @@ -31,7 +32,7 @@ function fixedLayOut() { } $null.css({ - top: winH / 2 - nullH / 2 + top: winH / 2 - nullH / 2 + navH }); } diff --git a/static/sass/me/_coupons.scss b/static/sass/me/_coupons.scss index 0b7280e..a7895ed 100644 --- a/static/sass/me/_coupons.scss +++ b/static/sass/me/_coupons.scss @@ -83,7 +83,7 @@ position: absolute; left: 0; top:50%; - //@include transform(translateY(-50%)); + @include transform(translateY(-50%)); i{ width: 100%; height: 120rem / $pxConvertRem;