Login Register

bug dialog dojox widget

There is a bug in dojox.widget.Dialog

It fails even in this simple case.

initialize = function(){
  var button = dijit.byId("button");
  var dialog = dijit.byId("dialog");

  dojo.connect(button, "onClick", null, function(){
    dialog.setContent("hello a");
    dialog.show();
  });
}
dojo.addOnLoad(initialize);

The cause of this bug is so simple.

When dijit.layout.ContentPane.setContent is over. dijit.Dialog.onload called dojox.widget.Dialog._position, then, there is a code like this will be called, XXX = this._size.w = XXX;.

Syndicate content