Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Seb105 opened this issue Jul 24, 2021 · 0 comments · Fixed by #618
Closed

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

Seb105 opened this issue Jul 24, 2021 · 0 comments · Fixed by #618
Labels
bug Something isn't working
Milestone

Comments

@Seb105
Copy link

Seb105 commented Jul 24, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants