mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
small fixes
This commit is contained in:
parent
9a01b5ad2d
commit
4c9019e03c
8 changed files with 21 additions and 9 deletions
|
|
@ -404,6 +404,12 @@ void TextBox::onFocus(GUI* gui) {
|
|||
}
|
||||
}
|
||||
|
||||
void TextBox::reposition() {
|
||||
auto size = getSize();
|
||||
UINode::reposition();
|
||||
refreshLabel();
|
||||
}
|
||||
|
||||
void TextBox::refresh() {
|
||||
Container::refresh();
|
||||
label->setSize(size-glm::vec2(padding.z+padding.x, padding.w+padding.y));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue