2015-09-04 Carl Hetherington <cth@carlh.net>
+ * Fix audio mapping view changing size
+ on first click.
+
* Version 2.1.52 released.
2015-09-03 Carl Hetherington <cth@carlh.net>
Bind (wxEVT_GRID_CELL_LEFT_CLICK, boost::bind (&AudioMappingView::left_click, this, _1));
Bind (wxEVT_GRID_CELL_RIGHT_CLICK, boost::bind (&AudioMappingView::right_click, this, _1));
_grid->GetGridWindow()->Bind (wxEVT_MOTION, boost::bind (&AudioMappingView::mouse_moved, this, _1));
+ Bind (wxEVT_SIZE, boost::bind (&AudioMappingView::sized, this, _1));
_menu = new wxMenu;
_menu->Append (ID_off, _("Off"));
ev.Skip ();
}
+
+void
+AudioMappingView::sized (wxSizeEvent& ev)
+{
+ _grid->AutoSize ();
+ ev.Skip ();
+}