Skip to content

Commit

Permalink
CSS and JS fixes to get the menubar to work with igv-notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
tmtabor committed Apr 28, 2022
1 parent 571dd1e commit 2da73a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions igv/static/menu.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* Navbar container */
.igv-darkbar {
display: block;
overflow: hidden;
background-color: #4a8797;
font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
Expand Down
6 changes: 3 additions & 3 deletions igv/static/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ class Menu {
}

static igv_from_event(event) {
const igv_node = event.target.closest('.igv-navbar').parentNode.lastChild;
return window.igv.browserCache[igv_node.id];
const igv_node = event.target.closest('.jp-Cell-outputArea').querySelector('.igv-container').parentNode;
return window.igv.MessageHandler.browserCache.get(igv_node.id)
}
}

Expand Down Expand Up @@ -307,7 +307,7 @@ class SVGMenu {

class HelpMenu {
static github() {
window.open('https://github.com/igvteam/igv-jupyter');
window.open('https://github.com/g2nb/igv-jupyter');
}

static forum() {
Expand Down

0 comments on commit 2da73a5

Please sign in to comment.