Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasJang committed Jun 6, 2016
1 parent b79f697 commit 58d7f57
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
10 changes: 5 additions & 5 deletions dist/ax5modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/**
* @class ax5modal
* @alias ax5.ui.modal
* @version 0.5.6
* @version 0.6.0
* @author [email protected]
* @example
* ```
Expand Down Expand Up @@ -245,8 +245,8 @@
}

return {
left: modalOffset.left + self.__dx,
top: modalOffset.top + self.__dy
left: modalOffset.left + self.__dx + $(document).scrollLeft(),
top: modalOffset.top + self.__dy + $(document).scrollTop()
};
};

Expand Down Expand Up @@ -280,8 +280,8 @@
var setModalPosition = function setModalPosition() {
//console.log(this.activeModal.offset(), this.__dx);
var box = this.activeModal.offset();
box.left += this.__dx;
box.top += this.__dy;
box.left += this.__dx - $(document).scrollLeft();
box.top += this.__dy - $(document).scrollTop();
this.activeModal.css(box);
};

Expand Down
2 changes: 1 addition & 1 deletion dist/ax5modal.min.js

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

Loading

0 comments on commit 58d7f57

Please sign in to comment.