Support to set max and min bar width and height.