diff options
author | bptato <nincsnevem662@gmail.com> | 2023-09-22 12:44:53 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-09-22 12:53:03 +0200 |
commit | 1ef033b1025f818a8b5875a51cf019e41f11f767 (patch) | |
tree | df3f54c50fad76dbd21d5c890f6144101f36f135 /src | |
parent | 7c8cc5c20cb69f77204d6b19beed501c005bd3be (diff) | |
download | chawan-1ef033b1025f818a8b5875a51cf019e41f11f767.tar.gz |
fix size for some input types
padToWidth should be called for all input types in InputWithSize. Also, they should be underlined by ua.css.
Diffstat (limited to 'src')
-rw-r--r-- | src/html/dom.nim | 2 |
1 files changed, 1 insertions, 1 deletions
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))) |