aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app')
-rw-r--r--ui/app/components/send/currency-display.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/ui/app/components/send/currency-display.js b/ui/app/components/send/currency-display.js
index ff61bd1e7..360dd15d4 100644
--- a/ui/app/components/send/currency-display.js
+++ b/ui/app/components/send/currency-display.js
@@ -98,9 +98,8 @@ CurrencyDisplay.prototype.handleChange = function (newVal) {
CurrencyDisplay.prototype.getInputWidth = function (valueToRender, readOnly) {
const valueString = String(valueToRender)
const valueLength = valueString.length || 1
- const dynamicBuffer = readOnly ? 0 : 1
- const decimalPointDeficit = !readOnly && valueString.match(/\./) ? -0.5 : 0
- return (valueLength + dynamicBuffer + decimalPointDeficit) + 'ch'
+ const decimalPointDeficit = valueString.match(/\./) ? -0.5 : 0
+ return (valueLength + decimalPointDeficit + 0.75) + 'ch'
}
CurrencyDisplay.prototype.render = function () {