Fixed setGravity