mirror of https://github.com/odrling/Aegisub
Don't hardcode the size of buttons with translatable labels. Closes #1750.
This commit is contained in:
parent
049142f6f6
commit
571c9d9b7a
|
@ -118,7 +118,8 @@ SubsEditBox::SubsEditBox(wxWindow *parent, agi::Context *context)
|
|||
|
||||
style_box = MakeComboBox("Default", wxCB_READONLY, &SubsEditBox::OnStyleChange, _("Style for this line"));
|
||||
|
||||
style_edit_button = new wxButton(this, -1, _("Edit"), wxDefaultPosition, wxSize(50, -1));
|
||||
style_edit_button = new wxButton(this, -1, _("Edit"), wxDefaultPosition,
|
||||
wxSize(GetTextExtent(_("Edit")).GetWidth() + 20, -1));
|
||||
style_edit_button->Bind(wxEVT_BUTTON, [=](wxCommandEvent&) {
|
||||
if (active_style) {
|
||||
wxArrayString font_list = wxFontEnumerator::GetFacenames();
|
||||
|
|
Loading…
Reference in New Issue