Commit 64bc2f9f authored by Mingsong Hu's avatar Mingsong Hu

Fix the position issue for pop-up dialog

parent 7f0da9d3
......@@ -131,8 +131,8 @@
let posOffset = dialogIndex * 20;
// Dialog options.
let dialogOptions = JSON.parse(viewSettings.dialog_options);
dialogOptions.left += posOffset + info.jsEvent.clientX;
dialogOptions.top += posOffset + info.jsEvent.clientY;
dialogOptions.left += posOffset + info.jsEvent.pageX;
dialogOptions.top += posOffset + info.jsEvent.pageY;
dialogOptions.title = thisEvent.title.replace(/(<([^>]+)>)/ig,"");
dialogOptions.html = des;
//Create window
......
Markdown is supported
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