Page 4 of 4

Re: Hide column if form = iframe

Posted: Thu May 07, 2020 10:40 pm
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

Re: Hide column if form = iframe

Posted: Thu May 07, 2020 10:44 pm
by kknm
I think we need to explicitly specify the number of lines in iframe mode

Re: Hide column if form = iframe

Posted: Fri May 08, 2020 6:30 am
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.

Re: Hide column if form = iframe

Posted: Fri May 08, 2020 10:49 am
by kknm
Yes, this option is suitable. Thank you.