button.c: h/v-center child label by default
This commit is contained in:
parent
033ed5fb94
commit
04b9219ee5
|
@ -175,5 +175,7 @@ void gui_button_init(struct gui_button *const b)
|
|||
};
|
||||
|
||||
gui_label_init(&b->label);
|
||||
b->label.common.hcentered = true;
|
||||
b->label.common.vcentered = true;
|
||||
gui_add_child(&b->common, &b->label.common);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue