cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

How to hide the white space when using NWF$("#s4-ribbonrow").hide()

Jump to solution

I am using NWF$("#s4-ribbonrow").hide() to hide the ribbon, the browser is showing a white area at the bottom. Any idea how to hide it.

Note: the height of the form should be more than the screen

Labels: (1)
Tags (1)
0 Kudos
Reply
3 Replies
Workflow Hero

Re: How to hide the white space when using NWF$("#s4-ribbonrow").hide()

Jump to solution

I guess this is due to the fact, that the actual heigth of the form is initially calculated during the loading of the form. If you later on remove/ elements from the DOM the size of the form is not re-calculated.

0 Kudos
Reply
Workflow Hero

Re: How to hide the white space when using NWF$("#s4-ribbonrow").hide()

Jump to solution

Thanks

I moved  NWF$("#s4-ribbonrow").hide(); to NWF$(document).ready(function() function

Before it was in NWF.FormFiller.Events.RegisterAfterReady(function()

It is fine now,

Reply
Workflow Hero

Re: How to hide the white space when using NWF$("#s4-ribbonrow").hide()

Jump to solution

There should actually be a javascript-function the trigger a re-calc of the heights ... but I can't seem to remember the actual name.

0 Kudos
Reply