Skip to content

Commit 8fe4622

Browse files
author
Jacob Silterra
committed
Fix bug where max zoom didn't properly recalculate when changing chromosome
it worked fine for jumping to a full chromosome, but if the destination locus was a range or gene name (e.g. EGFR) no recalculation was performed
1 parent 1c2399a commit 8fe4622

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/org/broad/igv/feature/exome/ExomeReferenceFrame.java

+1
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ private void calcExomeOrigin() {
136136

137137
@Override
138138
protected void beforeScaleZoom(Locus locus){
139+
super.calculateMaxZoom();
139140
calcExomeOrigin();
140141
}
141142

src/org/broad/igv/ui/panel/ReferenceFrame.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ public void jumpTo(Locus locus) {
500500
* @param locus
501501
*/
502502
protected void beforeScaleZoom(Locus locus) {
503-
//pass
503+
calculateMaxZoom();
504504
}
505505

506506
/**

0 commit comments

Comments
 (0)