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
that are selectable in the dialog (#911)
* Bug fix: remove of data overlay didn't update numbering of data overlays
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
......
......@@ -122,9 +122,13 @@ AliasInfoWindow.prototype.createChartDiv = function (params) {
} else {
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");
nameDiv.className = "minerva-chart-name";
nameDiv.innerHTML = overlays[i].getName() + "&nbsp;";
nameDiv.innerHTML = name + "&nbsp;";
rowDiv.appendChild(nameDiv);
if (data !== undefined && data !== null) {
......@@ -526,13 +530,13 @@ AliasInfoWindow.prototype.createVcfString = function (geneVariants) {
if (variant.getVariantIdentifier() !== undefined) {
variantId = variant.getVariantIdentifier();
}
result += variant.getContig() + "\t" +
variant.getPosition() + "\t" +
variantId + "\t" +
variant.getOriginalDna() + "\t" +
variant.getModifiedDna() + "\t" +
"100.0\t" +
"PASS\t" +
result += variant.getContig() + "\t" +
variant.getPosition() + "\t" +
variantId + "\t" +
variant.getOriginalDna() + "\t" +
variant.getModifiedDna() + "\t" +
"100.0\t" +
"PASS\t" +
additionalInfo + "\n";
}
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