Skip to content

Commit c7c42df

Browse files
ThisIsFroggieplfiorini
authored andcommitted
Make PasswordBox follow user set height.
The widgets in PasswordBox have a fixed height in them. This means that if some theme applies a custom height to PasswordBox, it is ignored, and the default 30px is used. This commit makes it so the widgets inside PasswordBox inherit the container's size, so when a custom height is applied, it is followed.
1 parent 6aa0a15 commit c7c42df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/2.0/PasswordBox.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ FocusScope {
5252

5353
TextBox {
5454
id: txtMain
55-
width: parent.width; height: 30
55+
width: parent.width; height: parent.height
5656
font.pixelSize: 14
5757

5858
echoMode: TextInput.Password

0 commit comments

Comments
 (0)