Skip to content

Commit

Permalink
fix feature density calculation broken in previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuels committed Sep 6, 2012
1 parent 37807f0 commit 25ca6f0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/JBrowse/View/Track/HTMLFeatures.js
Expand Up @@ -121,10 +121,6 @@ var HTMLFeatures = declare( BlockBased,
return handlers;
}).call(this);
this.eventHandlers.click = this._makeClickHandler( this.eventHandlers.click );

this.labelScale = this.featureStore.density * this.config.style.labelScale;
this.subfeatureScale = this.featureStore.density * this.config.style.subfeatureScale;
this.descriptionScale = this.featureStore.density * this.config.style.descriptionScale;;
},

/**
Expand All @@ -135,6 +131,13 @@ var HTMLFeatures = declare( BlockBased,
this.featureStore.load();
},

loadSuccess: function() {
this.inherited(arguments);
this.labelScale = this.featureStore.density * this.config.style.labelScale;
this.subfeatureScale = this.featureStore.density * this.config.style.subfeatureScale;
this.descriptionScale = this.featureStore.density * this.config.style.descriptionScale;;
},

/**
* Make a default feature detail page for the given feature.
* @returns {HTMLElement} feature detail page HTML
Expand Down

0 comments on commit 25ca6f0

Please sign in to comment.