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

TextBox contents are sometimes hidden by parent ScrollPanel #8

Open
Histidine91 opened this issue Feb 13, 2013 · 1 comment
Open

TextBox contents are sometimes hidden by parent ScrollPanel #8

Histidine91 opened this issue Feb 13, 2013 · 1 comment

Comments

@Histidine91
Copy link

See for instance http://code.google.com/p/zero-k/issues/detail?id=1762

Sometimes also observed on chat.

@gajop
Copy link
Contributor

gajop commented Jun 17, 2014

I can confirm this bug (or something similar) is still present. I'm seeing TextBox content outside of the ScrollPanel sometimes.
Screenshot: https://dl.dropboxusercontent.com/u/29384665/textbox%20issue.png

Code to do that:

self.spHistory = ScrollPanel:New {
    x = 1,
    right = 7,
    y = 1,
    bottom = 42,
}
self.tbHistory = TextBox:New {
    x = 1,
    width = "100%",
    y = 1,
    height = "100%",
    text = "",
    parent = self.spHistory,
}

self.panel = Control:New {
    x = 1,
    y = 1,
    width = "100%",
    height = "100%",
    children = {
        self.spHistory,
        -- other irrelevant components
        self.ebInputText,
        self.btnSubmit
    },
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants