break;
case 'cart-grandvision-selection':
h = hh * 0.98
- var rw = 1100;
- var rh = 750;
+ var rw = parseInt($("#grandvision-cart").css('width'));
+ var rh = parseInt($("#grandvision-cart").css('height'));
if (ww < rw || hh < rh) {
- var s = Math.min(ww / rw, hh / rh);
+ var s = Math.min(ww / rw, h / rh);
} else {
s = 1;
}
h = rh * s;
w = rw * s;
$("#grandvision-cart").css('transform', 'scale(' + s + ')');
- setTimeout(function () {
- $("#grandvision-selection .items").perfectScrollbar('update');
- }, 200);
+ // setTimeout(function () {
+ // $("#grandvision-selection .items").perfectScrollbar('update');
+ // }, 200);
break;
case 'bookmarks':
if (this.fluidbook.mobilefirst.enabled) {
}
#grandvision-cart {
+ @h: 1010px;
@bleu: #2459a9;
background-color: #f3f3f3;
padding: 0 40px 40px 40px;
- height: 750px;
+ height: @h;
width: 1100px;
transform-origin: 0 0;
width: 520px;
vertical-align: top;
margin-top: -30px;
- height: 700px;
+ height: unit(@h - 50, px);
#emptyres {
display: none;
.items {
width: 520px;
- max-height: 580px;
+ max-height: unit(@h - 170, px);
position: relative;
.item {
#grandvision-boxes {
display: inline-block;
width: 450px;
- height: 700px;
+ height: unit(@h - 50, px);
vertical-align: top;
margin-top: -30px;
margin-left: 40px;
padding: 20px 8px 20px 20px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
width: 452px;
- height: 600px;
+ height: unit(@h - 150, px);
margin-top: 17px;
h3 {
- margin-bottom: 0px;
+ margin-bottom: 15px;
}
.slots {
- max-height: 500px;
+ max-height: unit(@h - 250, px);
overflow: hidden;
.slot, .item, .text {