Frame resizes to fit tree