GX-Bug #45259 » refs_45259.patch
src/templates/Honeygrid/javascript/engine/widgets/stickybox.js (revision ) | ||
---|---|---|
1 | 1 |
/* -------------------------------------------------------------- |
2 |
stickybox.js 2016-03-09
|
|
2 |
stickybox.js 2016-03-16
|
|
3 | 3 |
Gambio GmbH |
4 | 4 |
http://www.gambio.de |
5 | 5 |
Copyright (c) 2016 Gambio GmbH |
... | ... | |
70 | 70 |
* @private |
71 | 71 |
*/ |
72 | 72 |
var _calculateDimensions = function() { |
73 |
var cssTop = 0; |
|
74 |
|
|
75 | 73 |
top = $header.outerHeight(); |
76 | 74 |
bottom = $footer.offset().top; |
77 | 75 |
top += options.marginTop; |
78 | 76 |
bottom -= options.marginBottom; |
79 | 77 |
|
80 |
|
|
81 | 78 |
elementHeight = $this.outerHeight(); |
82 | 79 |
elementWidth = $this.outerWidth(); |
83 | 80 |
elementOffset = elementOffset || $this.offset(); |
84 | 81 |
|
85 | 82 |
documentHeight = $(document).height(); |
86 | 83 |
|
87 |
cssTop = options.marginTop; |
|
84 |
var cssTop = options.marginTop;
|
|
88 | 85 |
if (headerFixed) { |
89 | 86 |
cssTop = top; |
90 | 87 |
} |
... | ... | |
271 | 268 |
initialHeader = $header.outerHeight() + options.marginTop; |
272 | 269 |
initialMarginTop = parseFloat($outerWrapper.css('margin-top').replace(/[^\d]/, '')); |
273 | 270 |
headerFixed = $header.css('position') === 'fixed'; |
271 |
|
|
272 |
if (jse.core.config.get('mobile')) { |
|
273 |
return done(); |
|
274 |
} |
|
274 | 275 |
|
275 | 276 |
_checkPosition(); |
276 | 277 |
_setProductInfoContentMinHeight(); |