Make icon object same size of its parent

when using svg I have to make sure that the svg size is the same as the parent object to make it fit into it.