Skip to content
Snippets Groups Projects
Unverified Commit 39b08feb authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire:
Browse files

Show annotation subtype if no text is present

parent 2d8ced79
No related branches found
No related tags found
No related merge requests found
Pipeline #17453 failed
......@@ -383,7 +383,7 @@ export class PdfPreview extends ScopedElementsMixin(DBPLitElement) {
annotationDiv.style.bottom = (annotation.rect[1] * that.canvasToPdfScale) + 'px';
annotationDiv.style.width = ((annotation.rect[2] - annotation.rect[0]) * that.canvasToPdfScale) + 'px';
annotationDiv.style.height = ((annotation.rect[3] - annotation.rect[1]) * that.canvasToPdfScale) + 'px';
annotationDivInner.innerText = text;
annotationDivInner.innerText = text === '' ? subtype : text;
annotationDiv.appendChild(annotationDivInner);
that.annotationLayer.appendChild(annotationDiv);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment