diff options
author | bobzel <zzzman@gmail.com> | 2025-06-26 16:41:01 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2025-06-26 16:41:01 -0400 |
commit | 2d70a3bc17fe94d0bf92d8362b8fda8a2e4a82e1 (patch) | |
tree | a9b733e4318f18890459a10ad50d393abf76f6e1 /src/client/views/nodes/formattedText/DashDocView.tsx | |
parent | 0093370a04348ef38b91252d02ab850f25d753b2 (diff) |
fixed rendering pdfs, text selections on pdfs,
Diffstat (limited to 'src/client/views/nodes/formattedText/DashDocView.tsx')
-rw-r--r-- | src/client/views/nodes/formattedText/DashDocView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/formattedText/DashDocView.tsx b/src/client/views/nodes/formattedText/DashDocView.tsx index e7f2cdba8..5570ff704 100644 --- a/src/client/views/nodes/formattedText/DashDocView.tsx +++ b/src/client/views/nodes/formattedText/DashDocView.tsx @@ -183,7 +183,7 @@ export class DashDocView { this.dom = document.createElement('span'); this.dom.style.position = 'relative'; this.dom.style.textIndent = '0'; - this.dom.style.width = (+node.attrs.width.toString().replace('px', '') + horizPadding).toString(); + this.dom.style.width = (+node.attrs.width.toString().replace('px', '') + horizPadding).toString() + 'px'; this.dom.style.height = node.attrs.height; this.dom.style.display = node.attrs.hidden ? 'none' : 'inline-block'; this.dom.style.float = node.attrs.float; |