deal with 0s offset
fix weird chrome bug where window renders transparent.