From 1ef033b1025f818a8b5875a51cf019e41f11f767 Mon Sep 17 00:00:00 2001 From: bptato Date: Fri, 22 Sep 2023 12:44:53 +0200 Subject: fix size for some input types padToWidth should be called for all input types in InputWithSize. Also, they should be underlined by ua.css. --- src/html/dom.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/html/dom.nim b/src/html/dom.nim index 67f0c666..b7b23356 100644 --- a/src/html/dom.nim +++ b/src/html/dom.nim @@ -1739,7 +1739,7 @@ func inputString*(input: HTMLInputElement): string = of INPUT_CHECKBOX, INPUT_RADIO: if input.checked: "*" else: " " - of INPUT_SEARCH, INPUT_TEXT: + of INPUT_SEARCH, INPUT_TEXT, INPUT_EMAIL, INPUT_URL, INPUT_TEL: input.value.padToWidth(int(input.attrulgz("size").get(20))) of INPUT_PASSWORD: '*'.repeat(input.value.len).padToWidth(int(input.attrulgz("size").get(20))) -- cgit 1.4.1-2-gfad0