Skip to content

Commit 95b01da

Browse files
Updated component to version 2.2.6
1 parent 703005f commit 95b01da

File tree

9 files changed

+27
-11
lines changed

9 files changed

+27
-11
lines changed

RELEASE-NOTES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### Version 2.2.5 - October, 27, 2016
2+
3+
- **Sticky** - Adds `container` setting. This can be used to specify the offsetParent of the sticky element and avoid having to calculate on initialization (improving performance)
4+
15
### Version 2.2.0 - June 26, 2016
26

37
- **All UI** - Added new setting `silent` to all modules which allows you to disable all console output including errors. This can be useful for preventing known errors, like a popup which cannot place itself on screen, or `sticky` content which initializes before it is visible [#3713](https://github.com/Semantic-Org/Semantic-UI/issues/3713)

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
"framework"
1616
],
1717
"license": "MIT",
18-
"version": "2.2.3"
18+
"version": "2.2.6"
1919
}

index.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* # Semantic UI 2.2.3 - Sticky
2+
* # Semantic UI 2.2.6 - Sticky
33
* http://github.com/semantic-org/semantic-ui/
44
*
55
*
@@ -136,7 +136,12 @@ module.exports = function(parameters) {
136136
},
137137

138138
determineContainer: function() {
139-
$container = $module.offsetParent();
139+
if(settings.container) {
140+
$container = $(settings.container);
141+
}
142+
else {
143+
$container = $module.offsetParent();
144+
}
140145
},
141146

142147
determineContext: function() {
@@ -883,6 +888,7 @@ _module.exports.settings = {
883888
pushing : false,
884889

885890
context : false,
891+
container : false,
886892

887893
// Context to watch scroll events
888894
scrollContext : window,

package.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Package.describe({
33
name : 'semantic:ui-sticky',
44
summary : 'Semantic UI - Sticky: Single component release',
5-
version : '2.2.3',
5+
version : '2.2.6',
66
git : 'git://github.com/Semantic-Org/UI-Sticky.git',
77
});
88

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "semantic-ui-sticky",
3-
"version": "2.2.3",
3+
"version": "2.2.6",
44
"title": "Semantic UI - Sticky",
55
"description": "Single component release of sticky",
66
"homepage": "http://www.semantic-ui.com",

sticky.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* # Semantic UI 2.2.3 - Sticky
2+
* # Semantic UI 2.2.6 - Sticky
33
* http://github.com/semantic-org/semantic-ui/
44
*
55
*

sticky.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* # Semantic UI 2.2.3 - Sticky
2+
* # Semantic UI 2.2.6 - Sticky
33
* http://github.com/semantic-org/semantic-ui/
44
*
55
*
@@ -135,7 +135,12 @@ $.fn.sticky = function(parameters) {
135135
},
136136

137137
determineContainer: function() {
138-
$container = $module.offsetParent();
138+
if(settings.container) {
139+
$container = $(settings.container);
140+
}
141+
else {
142+
$container = $module.offsetParent();
143+
}
139144
},
140145

141146
determineContext: function() {
@@ -882,6 +887,7 @@ $.fn.sticky.settings = {
882887
pushing : false,
883888

884889
context : false,
890+
container : false,
885891

886892
// Context to watch scroll events
887893
scrollContext : window,

sticky.min.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* # Semantic UI 2.2.3 - Sticky
2+
* # Semantic UI 2.2.6 - Sticky
33
* http://github.com/semantic-org/semantic-ui/
44
*
55
*

sticky.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)