Added the ensureRowIsVisible for customTree