accomodate firefox for offsetX