Login Register

resize

setting DateTextBox and TimeTextBox size

Hi everyone!

First of all, my greetings for this incredible toolkit, I just can imagine the hard work it has required...
Going straight to the point, I would like to change (exactly, to decrease) the size of a DateTextBox and a TimeTextBox (in other words, I need to set the width of the field to a shorter value).
On the Dojo book, I noticed the size attribute. I tried to set the size this way:
var startDate = new dijit.form.DateTextBox({ id: 'startDate',
constraints: {datePattern:'dd/MM/yyyy'},
required: 'true' },dojo.byId('startDatePickerDiv')

Resizable modal dialog - is there such a thing?

Hi All,
I'm looking for a dialog that is resizable and modal. Is there a dojo widget that does it, if not, is there a way to tweak one of dojo's widgets to do such a thing.

Thanks
Yoav

Change column size of grid programatically

Hi,

Is it possible to change the size of a column in a grid programatically?

Thank you!
J.

AccordionContainer layout update not calling children layout

Why doesn't the children resize when I do the following? The main accordion container adapts but the accordion panes stay the exact same size.

This is the code after I set new content into a neighboring contentpane setting the heigh of the parent div.

var accordion = dijit.byId('my_accordion_div_id');
if(accordion){
	accordion.layout();
}

Keeping a Dialog Centered

I was just extending the dialog for a custom widget and noticed that if I resized my browser window the dialog no longer remains in the central position in the browser window (something it used to do).

postCreate: function(){
                dojo.body().appendChild(this.domNode);
                this.inherited("postCreate",arguments);
                this.domNode.style.display="none";
                this.connect(this, "onExecute", "hide");
                this.connect(this, "onCancel", "hide");
                this.connect(window,'onresize',"_position");
        },
Syndicate content