From bee583b64e2871e45269237dcee04984602d7410 Mon Sep 17 00:00:00 2001 From: Joachim Bauch Date: Fri, 17 Dec 2021 13:07:41 +0100 Subject: [PATCH] Set title of author node (which might get clipped). --- src/pdfdraw.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pdfdraw.js b/src/pdfdraw.js index 45c79fc..859fb52 100644 --- a/src/pdfdraw.js +++ b/src/pdfdraw.js @@ -812,6 +812,7 @@ TextArea.prototype.drawCircle = function() { TextArea.prototype.update = function(page_annotator) { this.authorLabel.text(this.author || 'Anonymous'); + this.authorLabel.attr('title', this.author || 'Anonymous'); this.authorLabel.css('background-color', this.color); this.textareaContainer.css('left', this.textareaContainerPos[0]*this.page_annotator.scale); this.textareaContainer.css('top', this.textareaContainerPos[1]*this.page_annotator.scale);