From f07554f3007a4651a6a4dbf492632f542d591cee Mon Sep 17 00:00:00 2001 From: Jorge Martins Date: Tue, 14 Aug 2018 11:10:44 +0100 Subject: [PATCH] Update input.coffee add letterSpacing option --- input.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/input.coffee b/input.coffee index cbd747f..779bf13 100644 --- a/input.coffee +++ b/input.coffee @@ -103,6 +103,7 @@ class exports.Input extends Layer options.tabIndex ?= 0 options.textarea ?= false options.disabled ?= false + options.letterSpacing ?= 0 super options @@ -127,6 +128,7 @@ class exports.Input extends Layer @input.style.fontFamily = options.fontFamily @input.style.color = options.textColor @input.style.fontWeight = options.fontWeight + @input.style.letterSpacing = options.letterSpacing @input.value = options.text @input.type = options.type