...
|
...
|
@@ -104,17 +104,19 @@ exports.init = function(num) { |
|
|
wrapperPt = $goodItemWrapper.css('paddingTop');
|
|
|
containerPt = $goodsContainer.css('paddingTop');
|
|
|
|
|
|
wrapperWidth = 10 + (15 + 50) * ulNum + event.targetWidth;
|
|
|
//wrapperWidth = 10 + (15 + 50) * ulNum + event.targetWidth;
|
|
|
wrapperWidth = $goodItemWrapper.width();
|
|
|
|
|
|
wrapperX = (event.targetX - 1) * (event.targetWidth + itemMr) - (parseInt(wrapperPl) + 1);
|
|
|
wrapperY = (event.targetY - 1) *
|
|
|
(event.targetHeight + itemMb) + parseInt(containerPt) - (parseInt(wrapperPt) + 1);
|
|
|
|
|
|
//todo
|
|
|
//event.offsetR表示当前列表距离浏览器右侧边缘的距离
|
|
|
diffWidth = event.offsetR - ((15 + 50) * ulNum + 25);
|
|
|
|
|
|
if (diffWidth <= 0) {
|
|
|
wrapperX = wrapperX + diffWidth;
|
|
|
wrapperX = wrapperX + diffWidth - 25;
|
|
|
}
|
|
|
$goodItemWrapper.css({
|
|
|
width: wrapperWidth,
|
...
|
...
|
|