Fix #15076 that broke todo-app dojox/app demo. Moved custom sizing calculation to resize() which is called from startup() to ensure the widget is attached to the DOM.