Skip to content

Firebug Lite currently doesn't scroll the Console panel to the bottom. #19

@sfinktah

Description

@sfinktah

per: https://code.google.com/p/fbug/issues/detail?id=5345

Firebug Lite currently doesn't scroll the Console panel to the bottom. See http://getfirebug.com/firebuglite. This isn't Safari specific.

Therefore I keep this as enhancement request for Firebug Lite.

Note that Firebug Lite development is currently put on ice due to a lack of resources. So if you want this to be implemented soon, feel free to provide a patch.

Sebastian

This "solves" it, but I'm presently to busy to branch and insert myself.

(function() {
    var target = document.getElementById('fbConsole');
    if (target) {
        // create an observer instance
        var observer = new MutationObserver(function(mutations) {
            mutations.forEach(function(mutation) {
                if (mutation.type === 'childList') {
                    var a = mutation.addedNodes;
                    if (a.length) {
                        a[a.length - 1].scrollIntoView();
                    }
                }
            });
        });

        // configuration of the observer:
        var config = {
            childList: true
        };

        // pass in the target node, as well as the observer options
        observer.observe(target, config);

        // later, you can stop observing
        // observer.disconnect();
    }
})();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions