Skip to content

Commit

Permalink
v1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffreybauduin committed Nov 24, 2015
1 parent c530919 commit d6f1fce
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-scroll-pane",
"version": "1.1.1",
"version": "1.1.2",
"homepage": "https://github.com/lght/angular-scroll-pane",
"authors": [
"Geoffrey Bauduin <[email protected]>"
Expand Down
7 changes: 7 additions & 0 deletions dist/angular-jscrollpane.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@
} else {
$timeout(fn, 0);
}
$scope.$watch((function() {
return $attrs.scrollAlwaysTop;
}), function(newVal, oldVal) {
if (newVal && $scope.pane) {
$scope.pane.scrollToY(0);
}
});
return $scope.$on("reinit-pane", function(event, id) {
if (id === $attrs.id && $scope.pane) {
console.log("Reinit pane " + id);
Expand Down
4 changes: 2 additions & 2 deletions dist/angular-jscrollpane.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-scroll-pane",
"version": "1.1.1",
"version": "1.1.2",
"description": "AngularJS bindings for jScrollPane",
"main": "jscrollpane.js",
"scripts": {
Expand Down

0 comments on commit d6f1fce

Please sign in to comment.