changes to height offset calculations to keep table heights consistent.