https://forums.nubuilder.cloud/viewtopic. ... =10#p20859
Just replace height with width
Code: Select all
$('body').css('width', '200px'); // reduce the body height
Code: Select all
$('body').css('width', '200px'); // reduce the body height
Yes, the trick with width works, but it doesn’t work out with height. It is necessary to limit the number of lines in the iframe.kev1n wrote:Did you try this?
https://forums.nubuilder.cloud/viewtopic. ... =10#p20859
Just replace height with width
Code: Select all
$('body').css('width', '200px'); // reduce the body height
You mean that the blank rows should not be displayed ?kknm wrote:It is desirable that the number of lines in the iframe be dynamic, i.e. the number of lines should be from the query result.
Yeskev1n wrote:You mean that the blank rows should not be displayed ?kknm wrote:It is desirable that the number of lines in the iframe be dynamic, i.e. the number of lines should be from the query result.
Code: Select all
function removeEmptyRows() {
var lastRow;
var r = 0;
$('[data-nu-column="0"]').each(function(index) {
var cellId = $(this).attr('id');
var cellValue = $('#' + cellId).html();
var rowNum = String(cellId).split('_')[1];
if (cellValue === '') {
$("div[id^='nucell_" + rowNum + "']").remove();
r++;
}
});
var t = $('#nuBrowseFooter').css('top').replace('px', '');
$('#nuBrowseFooter').css('top', Number(t) - r * 23 + 20);
var h = $('#nubody').css('height').replace('px', '');
$('#nubody').css('height', Number(h) - r * 23 + 20);
}
removeEmptyRows();
Code: Select all
$('div[id^="nucell_"]').filter(':not([data-nu-primary-key])').remove();
I checked both methods, both clear empty lines, but do not solve the problem of right scrolling.kev1n wrote:You can also do it with a one-linerCode: Select all
$('div[id^="nucell_"]').filter(':not([data-nu-primary-key])').remove();
Code: Select all
$('#nuBrowseFooter').remove();
When does the horizontal scrollbar appear? I mean can't you just increase the width of the run object?kknm wrote: I checked both methods, both clear empty lines, but do not solve the problem of right scrolling.