Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dojo / Dijit BorderContainer in Dijit.Dialog

Tags:

layout

dojo

I am trying to programatically create layout like this:enter image description here

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

Thanks for helping me

like image 753
JoshuaBoshi Avatar asked Jan 17 '23 03:01

JoshuaBoshi


1 Answers

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

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

Alternatively, in your case, you can avoid using dijit.layout at all. Place the content of a dialog inside <div class="dijitDialogPaneContentArea"></div> and buttons into <div class="dijitDialogPaneActionBar"></div> and you will get:

enter image description here

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

like image 160
phusick Avatar answered Mar 21 '23 05:03

phusick