mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
visual fixes
This commit is contained in:
parent
9cb3923442
commit
4d54fadd61
4 changed files with 7 additions and 6 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue