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

Panorama Label and TextEntry text goes invisible after a certain length #134

Open
devilesk opened this issue Sep 10, 2017 · 0 comments
Open

Comments

@devilesk
Copy link

Once the content of the text attribute in a panel exceeds a certain width it becomes invisible. You can still select the text and cut/copy/paste, but you don't see the characters.

https://i.imgur.com/bdrvVgv.jpg

It looks like the point at which the text becomes invisible is based on the width of the text exceeding the screen width. The number of characters varies depending on aspect ratio, font-size, and the text itself. Setting overflow to scroll doesn't matter. Neither does setting text in xml or js.

You should also be able to reproduce just by manually entering text in any TextEntry and the contents will turn invisible eventually.

Example xml and css:

<root>
    <styles>
        <include src="file://{resources}/styles/dotastyles.css" />
        <include src="file://{resources}/styles/custom_game/main.css" />
    </styles>
    <Panel class="container">
        <TextEntry id="test" text="aaaaaaaaaa"/>
        <Label id="test2" text="aaaaaaaaaa" />
    </Panel>
</root>
.container {
    margin-left: 50px;
    width: 1920px;
    height: 1080px;
    flow-children: down;
}

#test, #test2 {
    border: 1px solid red;
    width: 50%;
    height: 50%;
    font-size: 500px;
    overflow: scroll;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants