Skip to content

Commit

Permalink
Merge pull request cBioPortal#130 from cBioPortal/minimap-placement
Browse files Browse the repository at this point in the history
Make minimap appear at top instead of bottom
  • Loading branch information
adamabeshouse authored and onursumer committed Jun 6, 2022
1 parent 9230763 commit 2cec547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/oncoprintjs/src/js/oncoprint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ export default class Oncoprint {
return;
}
if (visible) {
this.$minimap_div.css({'display': 'block', 'top': this.cell_view.getVisibleAreaHeight(this.model) + 30, 'left': $(this.ctr_selector).width() - this.$minimap_div.outerWidth() - 10});
this.$minimap_div.css({'display': 'block', 'top': 0, 'left': $(this.ctr_selector).width() - this.$minimap_div.outerWidth() - 10});
this.minimap_view.setMinimapVisible(true, this.model, this.cell_view);
} else {
this.$minimap_div.css('display', 'none');
Expand Down

0 comments on commit 2cec547

Please sign in to comment.