- commit
- dea57cbfb730fd03d1e07f41882f7b16243b0d43
- parent
- ac926d493d3d73c79fc45a782517a931b9213830
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2023-08-09 13:43
use parseFloat instead of parseInt for computed styles
Diffstat
| M | values.js | 2 | +- |
1 files changed, 1 insertions, 1 deletions
diff --git a/values.js b/values.js
@@ -24,7 +24,7 @@ export class Values {
24 24
25 25 // We may already have changed paddingTop, so we assume that original
26 26 // paddingTop and paddingBottom are the same
27 -1 var paddingTop = parseInt(style.paddingBottom, 10);
-1 27 var paddingTop = parseFloat(style.paddingBottom);
28 28
29 29 this.el.style.top = paddingTop + 'px';
30 30 this.el.style.bottom = style.paddingBottom;