Permalink
Browse files

fix offset adjustment for top margin

top wasn't adjusted and base was NaN after this, though it wasn't used
again
  • Loading branch information...
1 parent dbc29d9 commit 0fe9c43c7bd8773c6aba1efef3511f8b9d73efad @dbellizzi dbellizzi committed Jun 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 guiders-1.2.6.js
View
@@ -159,7 +159,7 @@ var guiders = (function($) {
// topMarginOfBody corrects positioning if body has a top margin set on it.
var topMarginOfBody = $("body").outerHeight(true) - $("body").outerHeight(false);
- base -= topMarginOfBody;
+ top -= topMarginOfBody;
// Now, take into account how the guider should be positioned relative to the attachTo element.
// e.g. top left, bottom center, etc.

0 comments on commit 0fe9c43

Please sign in to comment.