The maternal environment programs postnatal weight gain and glucose tolerance of male offspring, but placental and fetal growth are determined by fetal genotype in the Leprdb/+ model of gestational diabetes.