Skip to content

Commit

Permalink
Make multiline rendering default
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Mar 22, 2017
1 parent babf635 commit d9da753
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions src/JBrowse/View/Track/_AlignmentsMixin.js
Expand Up @@ -314,7 +314,16 @@ return declare([ MismatchesMixin, NamedFeatureFiltersMixin ], {
curr_pos++;
}
}
if(lang.isObject(this.config.renderAlignment) && this.config.renderAlignment.newlines) {
if(lang.isObject(this.config.renderAlignment) && this.config.renderAlignment.singleline) {
var gContainer = dojo.create('div', {
className: 'renderTable',
innerHTML: '<h2 class="sectiontitle">Matches</h2><div style=\"font-family: Courier; white-space: pre;\">'
+'Query: '+query_str+' <br>'
+' '+align_str+' <br>'
+'Ref: '+refer_str+' </div>'
}, parentElement );
}
else {
var s1, s2, s3, ret_str;
s1 = s2 = s3 = ret_str ='';
var qpos = 0, rpos = start;
Expand All @@ -338,15 +347,6 @@ return declare([ MismatchesMixin, NamedFeatureFiltersMixin ], {
+ret_str+'</div>'
}, parentElement );
}
else {
var gContainer = dojo.create('div', {
className: 'renderTable',
innerHTML: '<h2 class="sectiontitle">Matches</h2><div style=\"font-family: Courier; white-space: pre;\">'
+'Query: '+query_str+' <br>'
+' '+align_str+' <br>'
+'Ref: '+refer_str+' </div>'
}, parentElement );
}

return {
val1: query_str,
Expand Down
2 changes: 1 addition & 1 deletion tests/js_tests/spec/BAM.spec.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d9da753

Please sign in to comment.