JoshuaBoshi
JoshuaBoshi

Reputation: 1286

Dojo / Dijit BorderContainer in Dijit.Dialog

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

Upvotes: 4

Views: 2172

Answers (1)

phusick
phusick

Reputation: 7352

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

Upvotes: 9

Related Questions