How to remove white space from a section separator

RishabhB
Tera Contributor

Hello,

I am hiding/showing fields, respective section separators and annotations through UI policies.

I'm handling fields visibility through Visible column under UI Policy Action and through scripting sometime using setDisplay() method. Annotations are being hidded/displayed using  <section_separator_name>.parentNode.style.display = "none"; (or block).

 

Though the functionality is working but leaving white space when hidden. Please suggest a way to achieve this type of visibility with no white spaces left behind.

5 REPLIES 5

I'm hiding fields through UI Policy Action, annotations using <annotation_name>.parentNode.style.display = "none"; and using below code for hiding embedded list. 

var list = $$('div[tab_caption="<embedded list lebel>"]')[0];
    if (list.hasClassName('embedded')) {
        list.hide();
    }
White space removal is required for all 3 of them. kindly suggest how a dom or any other solution can fix this.