From daa9251b77b760e4895383ee1465be6a98462bfc Mon Sep 17 00:00:00 2001 From: Martchus Date: Tue, 5 Feb 2019 00:31:27 +0100 Subject: [PATCH] Fix ugly bullet points under Android on PasswordEchoOnEdit --- qml/FieldsPage.qml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qml/FieldsPage.qml b/qml/FieldsPage.qml index 8c2f5cf..6ad8f15 100644 --- a/qml/FieldsPage.qml +++ b/qml/FieldsPage.qml @@ -60,8 +60,15 @@ Kirigami.ScrollablePage { && !showCharactersCheckBox.checked Layout.fillWidth: true + // ensure height is always the same, regardless of echo mode (under Android the + // bullet points for PasswordEchoOnEdit have a different size causing a different + // height) + Layout.preferredHeight: fieldNameEdit.height text: fieldDialog.fieldValue echoMode: hideCharacters ? TextInput.PasswordEchoOnEdit : TextInput.Normal + // fix ugly bullet points under Android + font.pointSize: hideCharacters ? fieldNameEdit.font.pointSize + * 0.5 : fieldNameEdit.font.pointSize Keys.onPressed: fieldDialog.acceptOnReturn(event) } Controls.RoundButton {