chiliui icon indicating copy to clipboard operation
chiliui copied to clipboard

TextBox contents are sometimes hidden by parent ScrollPanel

Open Histidine91 opened this issue 12 years ago • 1 comments

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

Sometimes also observed on chat.

Histidine91 avatar Feb 13 '13 14:02 Histidine91

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
    },
}

gajop avatar Jun 17 '14 13:06 gajop