Calculation for dp pixes when adjusting UI height

refs #7805