Sorry, my post about creating an account to +1 might have come across a little "complainy". That wasn't what I intended.
I did play around with a tampermonkey script to set the UIBootgrid.options.disableScroll. Setting this to true and also setting the table height to auto gave me the results I wanted, but unfortunately trying to monkeypatch that was not very dependable. (There are issues with tampermonkey and @run-at document-start when a page executes too fast, when most things was cached)
If someone with more knowledge of developing for opnSense wants to implement it, an option to set that to true and to change or stop setting the calculated height might be the best of both worlds.
Just a thought. It isn't a show stopper or anything.
This was one of the variations of my not always working but sort of working script I was playing around to better explain what I was doing:
I did play around with a tampermonkey script to set the UIBootgrid.options.disableScroll. Setting this to true and also setting the table height to auto gave me the results I wanted, but unfortunately trying to monkeypatch that was not very dependable. (There are issues with tampermonkey and @run-at document-start when a page executes too fast, when most things was cached)
If someone with more knowledge of developing for opnSense wants to implement it, an option to set that to true and to change or stop setting the calculated height might be the best of both worlds.
Just a thought. It isn't a show stopper or anything.
This was one of the variations of my not always working but sort of working script I was playing around to better explain what I was doing:
Code Select
// ==UserScript==
// @name OPNSense Scroll
// @namespace http://tampermonkey.net/
// @version 2026-04-11
// @description Disables tabulator scrolling
// @author Me
// @match https://xxxxxxx:444/*
// @grant none
// @run-at document-start
// ==/UserScript==
(function()
{
'use strict';
const callback = function(mutationsList, observer) {
const $ = window.jQuery;
for (const mutation of mutationsList) {
if (mutation.type === 'childList') {
const target = mutation.target;
if (target.nodeType === 1 && target.tagName === 'DIV' && target.classList.contains('tabulator')) {
const $table = $(target);
const bgInstance = $table.data('UIBootgrid');
if (bgInstance && bgInstance.options.disableScroll !== true) {
bgInstance.options.disableScroll = true;
target.style.height = 'auto';
}
}
}
}
}
const observer = new MutationObserver(callback);
const patch = () => {
if (window.jQuery && window.jQuery.fn && window.jQuery.fn.UIBootgrid) {
const content = document.body;
if (content) {
observer.observe(content, { childList: true, subtree: true });
return;
}
}
setTimeout(patch, 50);
};
patch();
})();
"