Skip to content

First line of default text in EDIT:MULTI is not displayed if line wraps #617

@Seb105

Description

@Seb105

Arma 3 Version: 2.04 (stable)
CBA Version: 3.15.5.210713 (stable / dev )
ZEN Version: 1.11.1 (stable / dev)

Mods:

- CBA_A3
- ZEN

Description:
When creating a multiline textbox where the first line of the default text is a string so long it causes wrapping, the first line of the wrapped string is not displayed. The rest of the string, subsequent strings which wrap, and manual newlines appear to work correctly.

Clicking on the textbox then actually makes it display correctlly, but it does not do this unless you click
Expected behavior:
The text box should start at the TOP of the default text, regardless of whether any wrapping has occured.

Steps to reproduce:

private _text = "This is a really long string that is so long that it causes the multiline textbox to wrap to a new line. However, the textbox misses the first line of the string. This is very confusing for people who aren't  aware of this behaviour, and makes embedding instructions into a multitext box difficult.";

[
    "Multiline text",
    [
        [
            "EDIT:MULTI",
            "First line missing",
            [
                _text,
                {},
                5
            ],
            true
        ]
    ],
    {},
    {},
    []
] call zen_dialog_fnc_create 

Where did the issue occur?
Anywhere

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions