Skip to content

Commit

Permalink
Window click-to-front working again
Browse files Browse the repository at this point in the history
  • Loading branch information
lkarlslund committed Jan 10, 2024
1 parent dfbc9e3 commit 92bb66d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion modules/analyze/html/adalanche.css
Expand Up @@ -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 {
Expand Down
3 changes: 2 additions & 1 deletion modules/analyze/html/custom.js
Expand Up @@ -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
Expand Down

0 comments on commit 92bb66d

Please sign in to comment.