fix display problem while showing location tree in dialog