Shrink tree from top to bottom

I have a tree with text filter. On entering text in textfield, I want the tree to shrink from top to bottom rather than bottom to top as it happens by default. Please check attachment.
15239.png