Opened 12 years ago

Closed 12 years ago

#3421 closed defect (duplicate)

Fix to ticket #3406

Reported by: guest Owned by: bill
Priority: high Milestone: 0.9beta
Component: Dijit Version: 0.9
Keywords: parse contentpane parser splitcontainer Cc: bill
Blocked By: Blocking:

Description

I don't recive your answer and than i decide to open a new ticket with the fix. I believe my fix will be implemented in dijit. I work all day (13/06/07), and this is the solution!!!

add to ContentPane?.js:

resize:function(){
		  for(var i=0;i<this.getChildren().length;i++){
		    var ch=this.getChildren()[i];
        if(ch.resize)
          dijit.base.Layout.prototype.resize.apply(ch, arguments);
      }
      dijit.base.Layout.prototype.resize.apply(this, arguments);
    }

and in parser.js change this:

 dojo.forEach(thelist, function(widget){
			if(widget && widget.startup && (!widget.getParent || widget.getParent()==null)){
				widget.startup();
			}
		});

with this:

 dojo.forEach(thelist, function(widget){
			if(widget && widget.startup && (!widget.getParent || widget.getParent()==null || 
                                      (widget.getParent && widget.getParent()!=null && widget.getParent()._started) )){
				widget.startup();
				
				if((widget.getParent && widget.getParent()!=null && widget.getParent()._started) && widget.resize)
            widget.resize();
			}
		});

Change History (1)

comment:1 Changed 12 years ago by bill

Resolution: duplicate
Status: newclosed

Yes, I appreciate your work but you have to understand that there are many issues with dijit and your bugs will not necessarily be answered with a 24 hour period. I will answer the original ticket eventually.

Note: See TracTickets for help on using tickets.