Actively get parent size/viewbox dimenstions

Also reduced to use conditional ternary statements