account for devicePixelRatio and set to full window width