Skip to content

Commit

Permalink
Bug fix rendering multiple igv.js instances in same notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
tmtabor committed Jan 25, 2022
1 parent 15c1a84 commit 7bf1040
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class Menu {
* @param div - menu node to initialize
*/
static render(navbar) {
navbar.classList.add('igv-navbar-rendered');
navbar.classList.add('igv-darkbar');
navbar.appendChild(Menu.create_menu_dropdown('Genome', [
Menu.create_menu_item('Local File ...', GenomeMenu.local_genome),
Expand All @@ -36,14 +37,12 @@ class Menu {
]));
// navbar.appendChild(Menu.create_menu_item('Share', null)); // Doesn't make sense in JupyterLab
// navbar.appendChild(Menu.create_menu_item('Bookmark', null)); // Doesn't make sense in JupyterLab
navbar.appendChild(Menu.create_menu_item('Save SVG', SVGMenu.create_svg));
// navbar.appendChild(Menu.create_menu_item('Save SVG', SVGMenu.create_svg));
navbar.appendChild(Menu.create_menu_dropdown('Help', [
Menu.create_menu_item('GitHub Repository', HelpMenu.github),
Menu.create_menu_item('User Forum', HelpMenu.forum),
Menu.create_menu_item('About IGV-Jupyter', HelpMenu.about)
]));

navbar.classList.add('igv-menu-rendered');
navbar.parentNode.style.overflow = 'visible';
Menu.populate_genomes(navbar);
}
Expand Down

0 comments on commit 7bf1040

Please sign in to comment.