Original User: btfouGeoff,Here's how I deal with the position issue and making sure the layout in general is correct with a dijit layout with the loading script.require(['modules'], function(modules) {
//initial layout - hide regions etc
borderContainer.resize();
//create the map
on(map, 'load', function() {
//call resize last in map onLoad - probably not necessary but just in case
borderContainer.resize();
});
//all other app related modules, functions, etc
//final layout - programmatic creation of buttons, menus, widgets, etc
//call resize again right before destroying the loading screen
borderContainer.resize();
//destroy loading screen
});