Skip to content
Snippets Groups Projects
Commit eee421b2 authored by chris's avatar chris
Browse files

fix default position

parent b2f243fa
No related branches found
No related tags found
1 merge request!76Comment discussion
......@@ -40,8 +40,8 @@ export default options => {
const WaxSurface = activeView.dom.offsetParent.getBoundingClientRect();
const start = activeView.coordsAtPos(from);
const end = activeView.coordsAtPos(to);
let left = end.left - WaxSurface.left;
const top = end.top - WaxSurface.top + 20;
let left = end.left;
const top = end.top + WaxSurface.top - 25;
return {
top,
left
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment