showItem doesn't work in DotNetNuke module

When I call the showItem function on a Tree widget in a DotNetNuke module the function doesn’t seem to work.

Please beware that showItem API will affect only inner scroll of treeView component. API call will not affect document level scroll or any other HTML scrolls on the page.

If issue still occurs for you, please provide any kind of sample where the issue can be checked.

Well the exact same code pasted into a .html file works excellent but when the code is used in a DNN module everything works except the following line:
tree.showItem(nodeId);

Can you share a demo link, where the issue can be checked?
( you can me a private message with the link )