Commit 8bec9210 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

3 digit counter in annotation list caused missalign

parent e2a2758e
minerva (12.2.0~beta.2) unstable; urgency=medium minerva (12.2.0~beta.2) unstable; urgency=medium
* Bug fix: too many annotations (>=100) caused misaligning in the left panel
(#708)
* Bug fix: text was outside the popup window (#711) * Bug fix: text was outside the popup window (#711)
* Bug fix: custom semantic zooming contains multiple overlays checkbox was * Bug fix: custom semantic zooming contains multiple overlays checkbox was
disabled (#715) disabled (#715)
......
...@@ -546,16 +546,28 @@ Plugin tabs ...@@ -546,16 +546,28 @@ Plugin tabs
overflow: auto; overflow: auto;
} }
.minerva-annotation-row-odd { .minerva-annotation-row-odd, .minerva-annotation-row-even {
height: 26px;
padding: 5px; padding: 5px;
}
.minerva-annotation-row-odd {
background-color: #EAEAEA; background-color: #EAEAEA;
} }
.minerva-annotation-row-even { .minerva-annotation-row-even {
padding: 5px;
background-color: #ffffff; background-color: #ffffff;
} }
.minerva-annotation-counter {
min-width: 28px;
float: left;
}
.minerva-annotation-body {
float: left;
}
.minerva-overview-button { .minerva-overview-button {
color: #FFFFFF; color: #FFFFFF;
height: 36px; height: 36px;
......
...@@ -402,21 +402,22 @@ GuiUtils.prototype.createAnnotationList = function (annotations, options) { ...@@ -402,21 +402,22 @@ GuiUtils.prototype.createAnnotationList = function (annotations, options) {
} else { } else {
var row = document.createElement("div"); var row = document.createElement("div");
row.style.height = "26px";
if (j % 2 === 0) { if (j % 2 === 0) {
row.className = "minerva-annotation-row-odd"; row.className = "minerva-annotation-row-odd";
} else { } else {
row.className = "minerva-annotation-row-even"; row.className = "minerva-annotation-row-even";
} }
var header = document.createElement("div"); row.appendChild(Functions.createElement({
header.style.width = "28px"; type: "div",
header.style.float = "left"; className: "minerva-annotation-counter",
header.innerHTML = "[" + cntAnnotations + "]"; content: "[" + cntAnnotations + "]"
row.appendChild(header); }));
var body = document.createElement("div"); var body = Functions.createElement({
body.style.float = "left"; type: "div",
className: "minerva-annotation-body"
});
body.appendChild(link); body.appendChild(link);
row.appendChild(body); row.appendChild(body);
groupContainer.appendChild(row); groupContainer.appendChild(row);
......
Supports Markdown
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