Fixed missing semicolon.
Setting width and height the right way to account for vertical mode.
Flip tree horizontally about its midline in vertical mode.