as contentHeight could change when switching to password mode,
use a textmetrics which always computes it from the visible text
BUG:399155
Plasma |
as contentHeight could change when switching to password mode,
use a textmetrics which always computes it from the visible text
BUG:399155
No Linters Available |
No Unit Test Coverage |
Buildable 9288 | |
Build 9306: arc lint + arc unit |
Hmm, this does not actually fix the problem for me in Neon with all default font settings. The password field still gets taller when the first character of the password is typed.
I think this is the wrong TextField for SDDM/kscreenlocker actually. They use PlasmaComponents 2, which judging by my printf debugging isn't loading that particular TextField.qml.
TextFieldStyle.qml seems to be what's loaded there, however when applying the change there it doesn't fix the problem :/
In fact, setting implicitHeight seems largely useless. When I manually add +30, the field is larger but upon entering anything it still resizes by one pixel.
BTW for testing you can simply qmlscene Main.qml in plasma-workspace/sddm-theme. Also on !neon you'll want P340 for your ~/.config/fontconfig/fonts.conf to make sure font order is as it should be for noto. Oh, also I think the symbols2 split only happened like a year or two ago, so particularly old systems will also need newer noto TTFs.