Constrain lower boundary

If the new window is wider than the whole region, the current logic will result in a negative start position, so we need check and to adjust back to 1.