using computedStyle to determin offsets so % sizes and constraints work