Skip to content

Commit

Permalink
Removing creation of parentOffetTop having taken out its use
Browse files Browse the repository at this point in the history
  • Loading branch information
od0 committed Jun 17, 2015
1 parent 790af3f commit 3a1ad43
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/ng-scrollbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,6 @@ angular.module('ngScrollbar', []).directive('ngScrollbar', [

var buildScrollbar = function (rollToBottom) {

// Getting top position of a parent element to place scroll correctly
var parentOffsetTop = element[0].parentElement.offsetTop;

rollToBottom = flags.bottom || rollToBottom;
mainElm = angular.element(element.children()[0]);
transculdedContainer = angular.element(mainElm.children()[0]);
Expand Down

0 comments on commit 3a1ad43

Please sign in to comment.