Moving window padding logic to assignFrame