small fixes

This commit is contained in:
MihailRis
2025-03-11 00:39:59 +03:00
parent 9a01b5ad2d
commit 4c9019e03c
8 changed files with 21 additions and 9 deletions
+6
View File
@@ -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));