Skip to content

Commit

Permalink
Merging menu back into master
Browse files Browse the repository at this point in the history
  • Loading branch information
tmtabor committed Aug 30, 2021
1 parent c329123 commit 16a7647
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion igv/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def status(self, value):

def show(self):
"""Create an igv.js "Browser" instance on the front end."""
display(HTML(f"""<div id="{self.igv_id}"></div>"""))
display(HTML(f"""<div class="igv-navbar"></div><div id="{self.igv_id}"></div>"""))

# DON'T check status before showing browser,
msg = json.dumps({
Expand Down
1 change: 1 addition & 0 deletions lib/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import './menu.css';
1 change: 1 addition & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './igv';
export * from './menu';
export * from './plugin';
2 changes: 2 additions & 0 deletions lib/plugin.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import igv from './igv';
import Menu from './menu';
import { INotebookTracker, NotebookPanel } from '@jupyterlab/notebook';

let current_panel = null;
Expand Down Expand Up @@ -32,6 +33,7 @@ function handle_message(msg, comm) {

async function createBrowser(div, config) {
await prepare_urls(config);
Menu.init();
igv.createBrowser(div, config)
.then(function (browser) {
igv.browserCache[config.id] = browser;
Expand Down

0 comments on commit 16a7647

Please sign in to comment.