Skip to content

Commit b2a7c7f

Browse files
committed
release v1.0.13
1 parent d36797c commit b2a7c7f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

dist/kityminder.editor.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1510,12 +1510,12 @@ angular.module('kityminderEditor')
15101510
var pw = $($previewer).outerWidth();
15111511
var ph = $($previewer).outerHeight();
15121512

1513-
var x = b.cx - pw / 2 - $container.offsetLeft;
1514-
var y = b.bottom + 10 - $container.offsetTop;
1513+
var x = b.cx - pw / 2 - $container[0].offsetLeft;
1514+
var y = b.bottom + 10 - $container[0].offsetTop;
15151515

15161516
if (x < 0) x = 10;
1517-
if (x + pw > cw) x = b.left - pw - 10 - $container.offsetLeft;
1518-
if (y + ph > ch) y = b.top - ph - 10 - $container.offsetTop;
1517+
if (x + pw > cw) x = b.left - pw - 10 - $container[0].offsetLeft;
1518+
if (y + ph > ch) y = b.top - ph - 10 - $container[0].offsetTop;
15191519

15201520

15211521
scope.previewerStyle = {

0 commit comments

Comments
 (0)