hi
Auto Scroll to bottom not work for me
all other node work for me
this issus only in my custom node
so I add this code to update scrolltop when new item added
but scrolltop value never update !
what's wrong I cant fix That some help pls !!!!
var elem = document.getElementById('node-input-DigitalInputMapping-container');
elem.scrollTop = elem.scrollHeight - elem.clientHeight;
console.log(elem.scrollTop);
this html section
<div id="config-client-tab-mapping" style="display:none">
<div id="config-client-section-DI">
<div class="red-ui-palette-header">
<label> <i class="fa fa-angle-down"></i><span data-i18n="common.label.DI-message"></span>Digital Input</label>
</div>
<div class="section-content" style="padding:10px 0 0 10px">
<ol id="node-input-DigitalInputMapping-container"></ol>
</div>
</div>
......
this container
$('#node-input-DigitalInputMapping-container')
.css('min-height','270px')
.css('min-width','450px')
.css('max-height', '270px')
.editableList({
sortable: false,
removable: true,
addButton: true,
header: $("<div>").css({"margin-left":"6px"}).append($.parseHTML(
"<div style='width:11%; margin-left:5px; display: inline-grid'><b></b></div>" +
"<div style='width:18%; margin-left:1px; display: inline-grid'><b>Name</b></div>" +
"<div style='width:31%; margin-left:1px; display: inline-grid'><b>IO Address</b></div>" +
"<div style='width:30%; margin-left:1px; display: inline-grid'><b>Comment</b></div>"
)),
addItem: function(container, index, DI) {
.......