diff --git a/jquery.joyride-2.1.js b/jquery.joyride-2.1.js index 72fb38d..0531af7 100755 --- a/jquery.joyride-2.1.js +++ b/jquery.joyride-2.1.js @@ -15,6 +15,7 @@ 'version' : '2.1', 'tipLocation' : 'bottom', // 'top' or 'bottom' in relation to parent 'nubPosition' : 'auto', // override on a per tooltip bases + 'nubOffset' : false, // specify exact offset to control exact nub position (false = get position from stylesheet (22px)) 'scroll' : true, // whether to scroll to tips 'scrollSpeed' : 300, // Page scrolling speed in milliseconds 'timer' : 0, // 0 = no timer , all other numbers = timer in milliseconds @@ -544,6 +545,12 @@ settings.$next_tip.css('visibility', 'visible'); } + if (settings.tipSettings.tipLocation === 'top' || settings.tipSettings.tipLocation === 'bottom') { + methods.nub_offset($nub, settings.tipSettings.nubOffset, 'left'); + } else { + methods.nub_offset($nub, settings.tipSettings.nubOffset, 'top'); + } + }, pos_phone : function (init) { @@ -811,6 +818,12 @@ } }, + nub_offset : function (nub, offset, pos) { + if (offset) { + nub.css(pos, offset); + } + }, + startTimer : function () { if (settings.$li.length) { settings.automate = setTimeout(function () {