#668 fix formula editor button widths and add regression test

see issue #668