mirror of https://github.com/odrling/Aegisub
Expand layer SpinCtrl a little
to compensate wxMac bug with GetSizeFromText
This commit is contained in:
parent
d55922d3cf
commit
53cc316e6f
|
@ -157,7 +157,7 @@ SubsEditBox::SubsEditBox(wxWindow *parent, agi::Context *context)
|
||||||
// GTK3 has a bug that we cannot shrink the size of a widget, so do nothing there. See:
|
// GTK3 has a bug that we cannot shrink the size of a widget, so do nothing there. See:
|
||||||
// http://gtk.10911.n7.nabble.com/gtk-widget-set-size-request-stopped-working-with-GTK3-td26274.html
|
// http://gtk.10911.n7.nabble.com/gtk-widget-set-size-request-stopped-working-with-GTK3-td26274.html
|
||||||
// https://trac.wxwidgets.org/ticket/18568
|
// https://trac.wxwidgets.org/ticket/18568
|
||||||
layer->SetInitialSize(layer->GetSizeFromTextSize(GetTextExtent(wxS("0"))));
|
layer->SetInitialSize(layer->GetSizeFromTextSize(GetTextExtent(wxS("00"))));
|
||||||
#endif
|
#endif
|
||||||
layer->SetToolTip(_("Layer number"));
|
layer->SetToolTip(_("Layer number"));
|
||||||
middle_left_sizer->Add(layer, wxSizerFlags().Center());
|
middle_left_sizer->Add(layer, wxSizerFlags().Center());
|
||||||
|
|
Loading…
Reference in New Issue