Fix style to size Math toolbar automatically.
Fix bug in MathInspector to correctly apply format changes.