-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plasma-new-hope: TextArea height / width fixes #1261
Conversation
Theme Builder app deployed! https://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-1261/ |
Documentation preview deployed! website:https://plasma.sberdevices.ru/pr/pr-1261/ |
⚡ Component performance testingResult: 🟢 OK |
689bcfc
to
865e768
Compare
⚡ Component performance testingResult: 🟢 OK |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
апдейтнул доку sdds
в связи с влитием #1263
relative link:
#1263 (comment)
cd5bb26
to
c159cae
Compare
⚡ Component performance testingResult: 💀 WASTED Performance tests are broken. |
c159cae
to
03507e1
Compare
⚡ Component performance testingResult: 💀 WASTED Performance tests are broken. |
⚡ Component performance testingResult: 💀 WASTED Performance tests are broken. |
⚡ Component performance testingResult: 🟢 OK |
TextArea
rows / cols
,height / width
,autoResize / minAuto / maxAuto
)autoResize
What/why changed
Правки, связанные с высотой и шириной компонента
Before / after (autoResize)
До:
Пусть
minAuto
= 1,maxAuto
= 1. Пусть написана одна строка текста. Высотаtextarea
в этом случае равна2rem
, что неверно.before-minAuto1-maxAuto1.mov
После:
Поскольку сейчас
minAuto
иminAuto
отвечают за отображаемое кол-во строк, то высотаtextarea
в этом случае должна быть равна одномуline-height
(20px
для размераm
):after-minAuto1-maxAuto1.mov
После:
Пример для
minAuto
= 2,maxAuto
= 4after-minAuto2-maxAuto4.mov
После:
Пример для другого размера шрифта:
sExample.mov
После:
Если нет ограничений (
minAuto / maxAuto
), то высота растёт бесконечно:after-minAuto0-maxAuto0.mov
📦 Published PR as canary version:
Canary Versions
✨ Test out this PR locally via: