Page 1 of 1

nuhide subform onload brokes subform layout

Posted: Wed Jan 10, 2024 8:08 am
by andrea763
Hi everybody I have a subform showed on onclick event and hidden on an onblur. This part works flawlessly.
What doesn't work is that I want hide the subform when the main loads.. I thought the right please for Nuhide was onload() of the main and it effectively hide the sub, but when I shows the sub layout is gone.. All columns are on the left and noway to recover.
Thanks

Re: Huhide subform onload brokes subform layout

Posted: Wed Jan 10, 2024 8:50 am
by kev1n
I'm not sure exactly where you call nuHide().

If I add nuHide() in the Custom Code of the form and later call nuShow(), the form displays correctly again.

Re: Huhide subform onload brokes subform layout

Posted: Wed Jan 10, 2024 6:49 pm
by andrea763
i use the nuHide('iframe_macchine_virtuali_id'); on the form custom code.
if i use that command it brokes the layout as you can see in the first attached pictures.
the other pic is the right layout if i use the nuhide and nushow inside a onclick on a textfield.

Re: Huhide subform onload brokes subform layout

Posted: Thu Jan 11, 2024 9:40 am
by kev1n
That's strange. I'm not able to replicate this flaw. You could try this:

Code: Select all

$(function() {
   nuHide('iframe_macchine_virtuali_id');
});
$(function() { ... });: This is a shorthand for the jQuery document-ready function. It ensures that the enclosed code is executed only after the DOM has been fully loaded. I

Re: Huhide subform onload brokes subform layout

Posted: Thu Jan 11, 2024 12:35 pm
by andrea763
i discovered it's a firefox problem in chrome, chromium and opera it works properly..

Re: nuhide subform onload brokes subform layout

Posted: Fri Jan 12, 2024 12:20 pm
by kev1n
I tested with FF 121.0.1 and don't see this issue (subform with 25 columns)