Calculate height of tab and tab contents based on offset height of canvas, instead of internal height