Make popup generator aware of equation lengths and try to scale them down to fit