set canvas parent dims correctly