Added logic to always derive the closest canvas parent as target in
scale tool.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>