Request new features or modifications


Post by gubespam »

It would be great if the test results list would automatically scroll to the bottom as results are added to the list. This would make it easier to see failed tests and errors, as they occur, rather than having to manually scroll down to the bottom of the list after a failure/error occurs.

Post by mats »

Fixing right now!

Post by mats »

Done.

You can solve this yourself easily until the next release. In your harness
Ext.tree.View.override({
    onAdd : function() {
        var val = this.callParent(arguments);
        var el = this.getEl().dom;
        el.scrollTop = el.scrollHeight;
        return val;
    }
})


Post by gubespam »

When you say "in your harness", where exactly are you referring to? Won't the code you gave override all tree views, not just the one in the Siesta UI?

Post by gubespam »

I tried adding the code you gave to the top of my js file, just before Harness.configure(), but it doesn't seem to work.

Here's the workaround I found instead, which does work:

I added the following to the end of Siesta.Harness.Browser.UI.AssertionGrid (in siesta-all.js) -> initComponent -> viewConfig:
listeners: {
    itemadd: function(){
        var el = this.getEl().dom;
        el.scrollTop = el.scrollHeight;
    }
}

Post by mats »

The override will override all trees in the Siesta UI (only one). All tests have their own frame remember :)

Post by gubespam »

Ok thanks. I think the reason your first solution didn't work is because the result list is not a tree but a grid panel. You must have been thinking of the test list.

Post by mats »

In 1.2 version it's a tree... :)

Post by gubespam »

Ah. We are using 1.1.8. Thanks.

Post Reply