benchmark: fixed Grid widget layout calculation