Couple of tweaks to constructor / resize borrowed from grid class.