Skip to content

Commit f79db32

Browse files
committed
fixed arrow position problem of bottom-left
1 parent 870f290 commit f79db32

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

dist/jquery.webui-popover.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,8 @@
372372
arrowOffset = {left: elementW /2+fixedW};
373373
break;
374374
case 'bottom-left':
375-
position = {top: pos.top + pos.height, left: pos.left -targetWidth +pos.width};
376-
arrowOffset = {left: targetWidth- elementW /2};
375+
position = {top: pos.top + pos.height, left: pos.left -targetWidth +pos.width+fixedW};
376+
arrowOffset = {left: targetWidth- elementW /2 - fixedW};
377377
break;
378378
case 'right-top':
379379
position = {top: pos.top -targetHeight + pos.height + fixedH, left: pos.left + pos.width};

dist/jquery.webui-popover.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/jquery.webui-popover.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,8 @@
364364
arrowOffset = {left: elementW /2+fixedW};
365365
break;
366366
case 'bottom-left':
367-
position = {top: pos.top + pos.height, left: pos.left -targetWidth +pos.width};
368-
arrowOffset = {left: targetWidth- elementW /2};
367+
position = {top: pos.top + pos.height, left: pos.left -targetWidth +pos.width+fixedW};
368+
arrowOffset = {left: targetWidth- elementW /2 - fixedW};
369369
break;
370370
case 'right-top':
371371
position = {top: pos.top -targetHeight + pos.height + fixedH, left: pos.left + pos.width};

0 commit comments

Comments
 (0)