Skip to content

Commit ac58d0c

Browse files
author
Oleg Korsunsky
committed
tagging v. 1.1.3
1 parent ac107ac commit ac58d0c

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Stickyfill",
3-
"version": "1.1.2",
3+
"version": "1.1.3",
44
"homepage": "http://wd.dizaina.net/en/scripts/stickyfill/",
55
"authors": [
66
"Oleg Korsunsky <[email protected]>"

dist/stickyfill.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* Stickyfill -- `position: sticky` polyfill
3-
* v. 1.1.2 | https://github.com/wilddeer/stickyfill
3+
* v. 1.1.3 | https://github.com/wilddeer/stickyfill
44
* Copyright Oleg Korsunsky | http://wd.dizaina.net/
55
*
66
* MIT License
@@ -121,7 +121,7 @@
121121
}
122122

123123
function initElement(el) {
124-
if (isNaN(parseFloat(el.computed.top)) || el.isCell) return;
124+
if (isNaN(parseFloat(el.computed.top)) || el.isCell || el.computed.display == 'none') return;
125125

126126
el.inited = true;
127127

@@ -247,7 +247,8 @@
247247
marginBottom: computedStyle.marginBottom,
248248
marginLeft: computedStyle.marginLeft,
249249
marginRight: computedStyle.marginRight,
250-
cssFloat: computedStyle.cssFloat
250+
cssFloat: computedStyle.cssFloat,
251+
display: computedStyle.display
251252
},
252253
numeric = {
253254
top: parseNumeric(computedStyle.top),

dist/stickyfill.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Stickyfill",
3-
"version": "1.1.2",
3+
"version": "1.1.3",
44
"license": "MIT",
55
"homepage": "https://github.com/wilddeer/stickyfill",
66
"repository": {

0 commit comments

Comments
 (0)