Skip to content

Commit

Permalink
Fix the display of the current featureHeight in the SetFeatureHeightDlg
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Feb 25, 2021
1 parent dd8261a commit 60ea4ca
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions plugins/alignments/src/LinearPileupDisplay/model.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { ConfigurationReference, getConf } from '@jbrowse/core/configuration'
import {
ConfigurationReference,
readConfObject,
getConf,
} from '@jbrowse/core/configuration'
import {
getParentRenderProps,
getRpcSessionId,
Expand Down Expand Up @@ -314,7 +318,9 @@ const stateModelFactory = (
})
},
get featureHeightSetting() {
return self.featureHeight
return (
self.featureHeight || readConfObject(this.rendererConfig, 'height')
)
},
}))
.views(self => {
Expand Down

0 comments on commit 60ea4ca

Please sign in to comment.