Skip to content

Commit

Permalink
add datasetSelectorWidth conf variable, fixes #1059
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuels authored and cmdcolin committed Jun 2, 2018
1 parent d8b29e4 commit 6cd1f5d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions release-notes.md
@@ -1,5 +1,16 @@
{{$NEXT}}

## Minor improvements

* Added a `datasetSelectorWidth` configuration key that sets the width of the dataset
selector. The width defaults to `15em`. Example setting in tracks.conf:
```
[GENERAL]
classicMenu = true
datasetSelectorWidth = 20em
```
Thanks to @srobb1 for pointing out the need for this. (issue #1059, @rbuels)

## Bug fixes

* Fixed the `--config` option for `add-bw-track.pl`. Although documented in the script's POD,
Expand Down
4 changes: 4 additions & 0 deletions src/JBrowse/Browser.js
Expand Up @@ -1108,6 +1108,10 @@ renderDatasetSelect: function( parent ) {
})
combobox.placeAt( parent )
combobox.focusNode.onclick = function() { this.select() }
if (this.config.datasetSelectorWidth) {
combobox.domNode.style.width = this.config.datasetSelectorWidth
combobox.focusNode.style.width = this.config.datasetSelectorWidth
}
}
else {
if( this.config.datasets && this.config.dataset_id ) {
Expand Down

0 comments on commit 6cd1f5d

Please sign in to comment.