VID-2064 using px for calculations instead of ems