- commit
- 73f897c8a9fbca819f2678f92e174fa3ce0f0c44
- parent
- 4d435f7bc66e4f9c47fe14fe284959d5b165233a
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2023-08-08 15:18
fix: copy font style to measure
Diffstat
| M | values.js | 1 | + |
1 files changed, 1 insertions, 0 deletions
diff --git a/values.js b/values.js
@@ -41,6 +41,7 @@ export class Values {
41 41 : first.right - last.left;
42 42
43 43 this.measure.textContent = this.input.value;
-1 44 this.measure.style.font = style.font;
44 45 var text = this.measure.getBoundingClientRect();
45 46
46 47 if (width + this.gap + text.width < this.el.clientWidth) {