handle issue in webkit where red block would scroll the window horizontally on thin screens