fix tree open/close scroll to top issue