Skip to content

Commit

Permalink
Merge pull request seung-lab#70 from neurodata/contextMenuVisibility
Browse files Browse the repository at this point in the history
Increase visibility of the viewer contextMenu widget
  • Loading branch information
jbms authored Dec 8, 2017
2 parents 9f28594 + 477a84a commit d37ca37
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/neuroglancer/viewer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ export class Viewer extends RefCounted implements ViewerState {
showAxisLines = new TrackableBoolean(true, true);
showScaleBar = new TrackableBoolean(true, true);
showPerspectiveSliceViews = new TrackableBoolean(true, true);

contextMenu: ContextMenu;

layerPanel: LayerPanel;
layerSelectedValues =
this.registerDisposer(new LayerSelectedValues(this.layerManager, this.mouseState));
Expand Down Expand Up @@ -294,7 +295,7 @@ export class Viewer extends RefCounted implements ViewerState {
if (options.showHelpButton || options.showLocation) {
const topRow = document.createElement('div');
topRow.title = 'Right click for settings';
const contextMenu = this.registerDisposer(makeViewerContextMenu(this));
const contextMenu = this.contextMenu = this.registerDisposer(makeViewerContextMenu(this));
contextMenu.registerParent(topRow);
topRow.style.display = 'flex';
topRow.style.flexDirection = 'row';
Expand Down

0 comments on commit d37ca37

Please sign in to comment.