Changed methods to get height from horizontal and width anywhere on the tree tree.