When using an accordion with big panes, selecting a pane will take you to its bottom content and leave the top content out off the screen's visibility. Forcing the user to scroll up each time when selecting a pane.
Is it possible to auto scroll to top of the pane content when selecting a pane?
Accordion available here: https://jsfiddle.net/4hqv4eao/4/
require([
"dijit/layout/AccordionContainer",
"dijit/layout/ContentPane",
"dojo/ready"
],
function(AccordionContainer, ContentPane, ready) {
ready(function() {
var acc = new AccordionContainer({}, "accordion");
acc.addChild(new ContentPane({
title: "Title 1",
}, "pane1"));
acc.addChild(new ContentPane({
title: "Title 2",
}, "pane2"));
acc.addChild(new ContentPane({
title: "Title 3",
}, "pane3"));
acc.addChild(new ContentPane({
title: "Title 4",
}, "pane4"));
acc.startup();
});
});