Added dynamic height and width addition to treemap. fixes #841.