dojodijit.layout

dijit embedded BorderContainer does not work inside template


I have an embedded BorderContainer that works fine when the markup is within the main page. When I move the border container markup inside a widget with template, something goes wrong and the border container position all its children on top left corner on top of each other.

Here is a minimalistic snippet that shows the problem: http://embed.plnkr.co/cngYmG6BMKcUxwKQy2Du/

The same thing happens when I run locally with dojo version 1.12.1

Please can you tell me what I am missing?


Solution

  • As stated in the documentation of dijit._WidgetsInTemplateMixin...

    The dijit._WidgetsInTemplateMixin mixin does not support adding layout widgets as children. In particular there are issues with startup() and resize() calls to the children.