Make the visual typesetting toolbar use all available space

When toolbars actually have a background (as on OS X), the stretch
spacer was very ugly, and there's no different on platforms without a
background.

Originally committed to SVN as r6880.
This commit is contained in:
Thomas Goyne 2012-05-26 20:16:12 +00:00
parent cde9a34425
commit 571752a955

View file

@ -119,8 +119,7 @@ VideoBox::VideoBox(wxWindow *parent, bool isDetached, agi::Context *context)
VideoDisplay *videoDisplay = new VideoDisplay(visualSubToolBar, isDetached, zoomBox, this, context);
wxSizer *toolbarSizer = new wxBoxSizer(wxVERTICAL);
toolbarSizer->Add(visualToolBar, wxSizerFlags());
toolbarSizer->AddStretchSpacer();
toolbarSizer->Add(visualToolBar, wxSizerFlags(1));
toolbarSizer->Add(visualSubToolBar, wxSizerFlags());
// Top sizer