add min bar height and offset