Fixed problem where bar position was set before bar height was calculated.