Dojo / Dijit BorderContainer in Dijit.Dialog

I am trying to programmatically create a layout as follows: enter image description here

I am using dojo 1.7 and there is probably a problem with the layout initialization. This is my attempt .

Thank you for helping me.

+4
source share
1 answer

Let BorderContainer set the size of Dialog (and not the dialog itself): jsFiddle .

 var layout = new BorderContainer({ design: "headline", style: "width: 400px; height: 400px;" }); 

In addition, in your case, you may not use dijit.layout at all. Place the contents of the dialog box inside the <div class="dijitDialogPaneContentArea"></div> and buttons in the <div class="dijitDialogPaneActionBar"></div> , and you will get:

enter image description here

Source: http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/tests/test_Dialog.html

+9
source

Source: https://habr.com/ru/post/1402638/


All Articles