resize equation control panel when it is expanded/collapsed