Skip to content

Commit

Permalink
Merge pull request #108 from Divi/master
Browse files Browse the repository at this point in the history
Update option "removeOffsets" for left offset
  • Loading branch information
bigspotteddog committed Jan 13, 2014
2 parents 51f62cc + c7b94c4 commit 82404fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ var b = $.isScrollToFixed('.header');
* __minWidth__ (number) - the minimum width the window must be to "fix" the target element. Turns off the functionaility when the window width is less than specified.
* __dontCheckForPositionFixedSupport__ - (true|false|not present) some devices do not support position fixed; we check to see if it does. This option turns off that check if set to true.
* __dontSetWidth__ - (true|false|not set) box sizing that does not set the width on the target element when it goes fixed or absolute.
* __removeOffsets__ - (true|false|not set) recalculate top offset and delete left offset when the element goes absolute.

## Demos ##

Expand Down
2 changes: 1 addition & 1 deletion jquery-scrolltofixed.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
var left = offsetLeft;

if (base.options.removeOffsets) {
left = 0;
left = '';
top = top - offsetTop;
}

Expand Down

0 comments on commit 82404fb

Please sign in to comment.