Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Hide column if form = iframe

Questions related to customising nuBuilder Forte with JavaScript or PHP.
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: Hide column if form = iframe

Unread post by kknm »

kev1n wrote:
kknm wrote: I checked both methods, both clear empty lines, but do not solve the problem of right scrolling.
When does the horizontal scrollbar appear? I mean can't you just increase the width of the run object?
Forgive me for poor English, but talking about the right vertical scroll. The width of the iframe does not affect it.
rightScrol.PNG
The top right iframe using the function to remove blank lines.
orderForm.PNG
You do not have the required permissions to view the files attached to this post.
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: Hide column if form = iframe

Unread post by kknm »

I think we need to explicitly specify the number of lines in iframe mode
kev1n
nuBuilder Team
Posts: 4416
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 74 times
Been thanked: 472 times
Contact:

Re: Hide column if form = iframe

Unread post by kev1n »

Here's a test. The embedded Browse looks like this:
before.png
After adding this JavaScript to the Browse ...

Code: Select all

$('#nubody').css('height', '0px'); 
$('div[id^="nucell_"]').filter(':not([data-nu-primary-key])').remove();
$('#nuBrowseFooter').remove();
$('#nuBreadcrumbHolder').remove();
$('#nuActionHolder').remove();
It looks like this (there are no scrollbars anymore)
modified.png
I think the trick was to set nubody to 0px.
You do not have the required permissions to view the files attached to this post.
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: Hide column if form = iframe

Unread post by kknm »

Yes, this option is suitable. Thank you.
Post Reply