Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

offsetX, offsetY options

  • Loading branch information...
commit 3c59a38dfa778d1a4a9d29c717a790178cf600cc 1 parent d789526
@cgst cgst authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 popover.js
View
8 popover.js
@@ -2,7 +2,9 @@
$.fn.popover = function(options) {
var defaults = {
openEvent: null,
- closeEvent: null
+ closeEvent: null,
+ offsetX: 0,
+ offsetY: 0
}
var options = $.extend(defaults, options);
@@ -79,8 +81,8 @@ $.fn.popover = function(options) {
triangle.css("left", contentWidth/2 - triangleSize + diffWidth);
floater.offset({
- top: topOff,
- left: leftOff - diffWidth
+ top: topOff + options.offsetY,
+ left: leftOff - diffWidth + options.offsetX
});
floater.show();
//Timeout for webkit transitions to take effect
Please sign in to comment.
Something went wrong with that request. Please try again.