User:Polygnotus/Scripts/FilterInactiveOrBlocked.js: Difference between revisions

Content deleted Content added
Undid revision 1296697469 by Polygnotus (talk)
No edit summary
Line 10:
// Helper function to scroll status area to bottom
function scrollStatusToBottom() {
setTimeout(() => {
const statusDiv = $('#status-text');
requestAnimationFrame(() => {
const statusArea = $('#status-area');
statusDiv.scrollTop(statusDiv[0].scrollHeight);
});
// Try scrolling the status area container instead of the text div
if (statusArea.length && statusArea[0]) {
statusArea[0].scrollTop = statusArea[0].scrollHeight;
}
// Also try the text div as backup
if (statusDiv.length && statusDiv[0]) {
statusDiv[0].scrollTop( = statusDiv[0].scrollHeight);
}
}, 10);
}