Added adaptive bar height