Commit 6166eb28 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

trim too long names

parent df8cc024
...@@ -37,6 +37,7 @@ minerva (14.0.0~beta.0) unstable; urgency=low ...@@ -37,6 +37,7 @@ minerva (14.0.0~beta.0) unstable; urgency=low
that are selectable in the dialog (#911) that are selectable in the dialog (#911)
* Bug fix: remove of data overlay didn't update numbering of data overlays * Bug fix: remove of data overlay didn't update numbering of data overlays
that are still in the system (#918) that are still in the system (#918)
* Bug fix: too long name for data overlay in info window is trimmed (#919)
-- Piotr Gawron <piotr.gawron@uni.lu> Mon, 21 Aug 2019 21:00:00 +0200 -- Piotr Gawron <piotr.gawron@uni.lu> Mon, 21 Aug 2019 21:00:00 +0200
......
...@@ -122,9 +122,13 @@ AliasInfoWindow.prototype.createChartDiv = function (params) { ...@@ -122,9 +122,13 @@ AliasInfoWindow.prototype.createChartDiv = function (params) {
} else { } else {
rowDiv.className = "minerva-chart-row-odd"; rowDiv.className = "minerva-chart-row-odd";
} }
var name = overlays[i].getName();
if (name.length > 20) {
name = name.substr(0, 20) + "...";
}
var nameDiv = document.createElement("div"); var nameDiv = document.createElement("div");
nameDiv.className = "minerva-chart-name"; nameDiv.className = "minerva-chart-name";
nameDiv.innerHTML = overlays[i].getName() + "&nbsp;"; nameDiv.innerHTML = name + "&nbsp;";
rowDiv.appendChild(nameDiv); rowDiv.appendChild(nameDiv);
if (data !== undefined && data !== null) { if (data !== undefined && data !== null) {
...@@ -526,13 +530,13 @@ AliasInfoWindow.prototype.createVcfString = function (geneVariants) { ...@@ -526,13 +530,13 @@ AliasInfoWindow.prototype.createVcfString = function (geneVariants) {
if (variant.getVariantIdentifier() !== undefined) { if (variant.getVariantIdentifier() !== undefined) {
variantId = variant.getVariantIdentifier(); variantId = variant.getVariantIdentifier();
} }
result += variant.getContig() + "\t" + result += variant.getContig() + "\t" +
variant.getPosition() + "\t" + variant.getPosition() + "\t" +
variantId + "\t" + variantId + "\t" +
variant.getOriginalDna() + "\t" + variant.getOriginalDna() + "\t" +
variant.getModifiedDna() + "\t" + variant.getModifiedDna() + "\t" +
"100.0\t" + "100.0\t" +
"PASS\t" + "PASS\t" +
additionalInfo + "\n"; additionalInfo + "\n";
} }
return result; return result;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment