Fix ArdourButton text-align when button size grows
This is mainly relevant when the button is placed inside a Gtk::SizeGroup.
This commit is contained in:
parent
cbd2cc7b2e
commit
959f83244e
@ -972,6 +972,10 @@ ArdourButton::on_size_allocate (Allocation& alloc)
|
||||
{
|
||||
CairoWidget::on_size_allocate (alloc);
|
||||
setup_led_rect ();
|
||||
if (_layout) {
|
||||
/* re-center text */
|
||||
_layout->get_pixel_size (_text_width, _text_height);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user