Fixed issue with tree not resizing correctly.