Support Article
Vertical scrollbar disappears on clicking node of TreeGrid
SA-6368
Summary
User has configured a WorkArea control that displays two tabs on screen. In one of the tabs, a section with tree grid is shown. This tab has a vertical scroll bar as well. When user expands a node of tree grid, the vertical scroll bar disappears. Clicking on the same node brings the vertical scroll bar back.
Error Messages
No error messages.
Steps to Reproduce
a) Configure a WorkArea control to show two tabs.
b) In one of the tabs, configure a section that presents a large tree grid so that screen has a vertical scroll bar.
c) At run time, when user clicks on any node of the tree grid, the vertical scroll bar disappears.
Root Cause
The issue is in _resizeCallback function of PegaCompositeGadgetMgr JS file. The overflowY attribute of the workarea gadget div should be set to 'auto', to avoid this behavior.
if(this._oFrame.offsetHeight < this._oFrame.contentWindow.document.body.scrollHeight) {
frameBody.style.overflowY = "scroll"; // this value should be set to "auto"
} else {
frameBody.style.overflowX = "auto";
}
Resolution
HFix-20738 was provided to resolve the behavior.
Published January 31, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.