Add Gravity support for floating label

Now you can use left, right, center gravity for floating label