diff --git a/modules/analyze/html/adalanche.css b/modules/analyze/html/adalanche.css
index 5cabd86..04e01ef 100644
--- a/modules/analyze/html/adalanche.css
+++ b/modules/analyze/html/adalanche.css
@@ -107,14 +107,16 @@ body {
height: 100vh;
position: absolute;
pointer-events: none;
- z-index: 30;
+ z-index: 100;
}
.window {
+ position: absolute; /* required for z-index to work */
pointer-events: auto;
box-sizing: border-box;
display: inline-flex;
flex-direction: column;
+ z-index: 30;
}
.window-wrapper {
diff --git a/modules/analyze/html/custom.js b/modules/analyze/html/custom.js
index af81dcc..ab408e3 100644
--- a/modules/analyze/html/custom.js
+++ b/modules/analyze/html/custom.js
@@ -131,10 +131,11 @@ function newwindow(id, title, content, height, width) {
});
interact("#window_" + id)
- .origin('parent')
+ // .origin('self')
.resizable({
edges: { left: true, right: true, bottom: true, top: true },
margin: 5,
+ origin: self,
listeners: {
move(event) {
var target = event.target