Page 2 of 4
Re: Hide column if form = iframe
Posted: Tue May 05, 2020 6:00 am
by kev1n
kknm wrote:
I am confused by the warnings in Settings - Title.
The errors can be ignored, the code is perfectly fine. The parser just gets confused because a closing tag is found the beginning of the code.
kknm wrote:There was an unpleasant moment for viewing the iframe - the bottom scroll appeared.
What do you mean by that? Would you mind sharing a screenshot of what you see?
kknm wrote:And I would also like to remove the search field and buttons in this row in iframe mode.
Add $('#nuActionHolder').remove(); to your existing code:
Code: Select all
if (iniFrame()) {
$(function () {
hideBrowseColumn(0); // Hide the first column
$('#nuActionHolder').remove(); // Hide the search field, buttons
});
}
Re: Hide column if form = iframe
Posted: Tue May 05, 2020 1:52 pm
by kknm
I was mistaken, not only the bottom scroll, but the right one also appeared, which was not in the cloned forms. As I understand it, the form after hiding the column did not change its size.
scrol.PNG
order.PNG
Re: Hide column if form = iframe
Posted: Tue May 05, 2020 2:09 pm
by kev1n
Try changing the body height like this. You need to figure out somehow the correct value and replace 200px with your height.
Code: Select all
if (iniFrame()) {
$(function () {
hideBrowseColumn(0); // Hide the first column
$('#nuActionHolder').remove(); // Hide the search field, buttons
$('body').css('height', '200px'); // reduce the body height
});
}
Re: Hide column if form = iframe
Posted: Tue May 05, 2020 4:08 pm
by kknm
Horizontal scrolls are simply hidden by the adjacent iframe, which was not observed in cloned forms. The width of the iframe includes the size of the hidden column. It seems to me not to hide it, but to make the width = 0
That is not the problem. In cloned forms there was a limit on the number of lines, which I cannot allow in edit mode.
Re: Hide column if form = iframe
Posted: Tue May 05, 2020 9:37 pm
by kknm
Please repeat the script fragment to set the column width = 0
Re: Hide column if form = iframe
Posted: Tue May 05, 2020 9:45 pm
by kev1n
kknm wrote:Please repeat the script fragment to set the column width = 0
What do you mean by that?
Re: Hide column if form = iframe
Posted: Tue May 05, 2020 10:10 pm
by kknm
The original script that you edited while I checked. I wrote to you earlier about this.
While writing your answer, you changed the function, I was even scared.
Re: Hide column if form = iframe
Posted: Wed May 06, 2020 10:50 pm
by kknm
kev1n wrote:kknm wrote:Please repeat the script fragment to set the column width = 0
What do you mean by that?
Kevin help.
Re: Hide column if form = iframe
Posted: Thu May 07, 2020 5:40 am
by kev1n
I don't understand where you need help
Re: Hide column if form = iframe
Posted: Thu May 07, 2020 9:36 am
by kknm
kev1n wrote:I don't understand where you need help
When hideBrowseColumn (0); Iframe is not reduced by the width of the hidden column and the bottom scroll is visible. It is impossible to achieve a lack of scrolling by reducing the width of the iframe.
But if you apply a cloned shape with a column width = 0, iframe shows without a bottom scroll.
Tell me how to make the column width = 0 in the iframe.