Skip to main content
Nintex Community Menu Bar

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

  • September 6, 2018
  • 3 replies
  • 14 views

Forum|alt.badge.img+10

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

219076_pastedImage_1.png

3 replies

Forum|alt.badge.img+7
  • Nintex Partner
  • September 6, 2018

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.


Forum|alt.badge.img+10
  • Author
  • September 6, 2018

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,


Forum|alt.badge.img+7
  • Nintex Partner
  • September 6, 2018

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.