Kane Williamson batted for the declaration and fell for 71, ending a second-wicket stand of 141 runs at 4.36 per over Getty Images
Latham, meanwhile, carried on and completed his third Test century Getty Images
Loading ...
Some quick runs were added thereafter and New Zealand declared to set the visitors a target of 405, before rain interrupted play Getty Images
Dimuth Karunaratne and Kusal Mendis started the chase solidly with a partnership of 54 runs Getty Images
The hosts bounced back though. BJ Watling equalled the New Zealand record for most dismissals by a wicketkeeper and Udara Jayasundera bagged single digits in both innings of his debut Test Getty Images
Mendis held one end up and made a patient 46 before he was dismissed not five minutes before... Getty Images
... a hail storm brought a premature end to the fourth day with Sri Lanka needing 296 and New Zealand needing seven wickets on the final day Getty Images