mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-22 21:50:34 +03:00
EditBox: fixed size calculation (#2181)
Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
parent
7653c1cf83
commit
03cd4703e8
@ -48,7 +48,10 @@
|
||||
function computeSize (t: HTMLInputElement | EventTarget | null) {
|
||||
const target = t as HTMLInputElement
|
||||
const value = target.value
|
||||
text.innerHTML = (value === '' ? phTraslate : value).replaceAll(' ', ' ')
|
||||
text.innerHTML = (value === '' ? phTraslate : value)
|
||||
.replaceAll(' ', ' ')
|
||||
.replaceAll('<', '<')
|
||||
.replaceAll('>', '>')
|
||||
if (format === 'number') {
|
||||
target.style.width = maxWidth ?? '5rem'
|
||||
} else if (kind === 'underline') {
|
||||
|
Loading…
Reference in New Issue
Block a user