Skip to content

FormSpec password fields use hidden text width, not "*" width #9368

@v-rob

Description

@v-rob
Minetest version
0.4.16 - 5.1.0
OS / Hardware

Operating system: Windows 10, Linux Mint

Summary/Steps to reproduce

In any password field (like the one for connecting to servers), type a bunch of wide letters (like w) until the characters start to scroll. They will scroll long before you reach the end of the field as it is calculating the widths of the ws and predicts the text to be much longer than it actually is. If you use a character like |, it will scroll later than it should because it predicts it to be shorter.

Solution

Calculate the width of the string in * characters, not normal characters.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions