Alex Trofimov 13 年 前
親
コミット
36e0e9f02f
1 ファイル変更、4 行追加、3 行削除
  1. 4 3
      inc/js/jquery.dolPopup.js

+ 4 - 3
inc/js/jquery.dolPopup.js

@@ -257,6 +257,7 @@
             
             if (o.pointer != false) {                
                 
+                var yOffset = 3;
                 var ePointAt = 'string' == o.pointer.el ? $(o.pointer.el) : o.pointer.el;
                 if (!ePointAt)
                     ePointAt = $('body');
@@ -270,21 +271,21 @@
 
                 $el.position({
                     of: ePointAt,
-                    my: o.pointer.align + '+' + parseInt(aOffset[0]) + ' top+' + parseInt(aOffset[1] - 0),
+                    my: o.pointer.align + '+' + parseInt(aOffset[0]) + ' top+' + yOffset + '+' + parseInt(aOffset[1] - 0),
                     at: o.pointer.align + ' bottom',
                     collision: 'flip none'
                 });
 
                 $el.find('.bx-popup-box-pointer').css('display', 'block').position({
                     of: ePointAt,
-                    my: 'center+' + (parseInt(aOffsetPointer[0]) + parseInt(aOffset[0])) + ' top+' + (parseInt(aOffsetPointer[1]) + parseInt(aOffset[1]) + 0),
+                    my: 'center+' + (parseInt(aOffsetPointer[0]) + parseInt(aOffset[0])) + ' top+' + yOffset + '+' + (parseInt(aOffsetPointer[1]) + parseInt(aOffset[1]) + 0),
                     at: 'center bottom'
                 });
 
                 $(window).on('resize.popupPointer', function() {
                     $el.position({
                         of: ePointAt,
-                        my: o.pointer.align + '+' + parseInt(aOffset[0]) + ' top+' + parseInt(aOffset[1]),
+                        my: o.pointer.align + '+' + parseInt(aOffset[0]) + ' top+' + yOffset + '+' + parseInt(aOffset[1]),
                         at: o.pointer.align + ' bottom',
                         collision: 'flip none'
                     });