From 92bb66df01a9db49dfcb43e62f1d43f1348a2a70 Mon Sep 17 00:00:00 2001 From: Lars Karlslund Date: Wed, 10 Jan 2024 13:20:23 +0100 Subject: [PATCH] Window click-to-front working again --- modules/analyze/html/adalanche.css | 4 +++- modules/analyze/html/custom.js | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) 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