visual fixes

This commit is contained in:
MihailRis
2024-02-03 06:08:27 +03:00
parent 9cb3923442
commit 4d54fadd61
4 changed files with 7 additions and 6 deletions
+2 -2
View File
@@ -146,8 +146,8 @@ Button* Button::textSupplier(wstringsupplier supplier) {
return this;
}
void Button::setSize(glm::vec2 size) {
Panel::setSize(size);
void Button::refresh() {
Panel::refresh();
if (label) {
label->setSize(size-vec2(padding.z+padding.x, padding.w+padding.y));
}