Opened 5 years ago

Closed 3 years ago

#17712 closed defect (patchwelcome)

dojox.layout.GridContainer addChild bugs column position on an unbalaced number of children

Reported by: yohanleafheart Owned by:
Priority: undecided Milestone: 1.13
Component: DojoX Layout Version: 1.9.2
Keywords: Cc:
Blocked By: Blocking:

Description

Hello everyone,

I'm using right now a dojox GridContainer? with a series of dojox/widget/Portlets. There is a problem that if the number of children you added before calling gridContainer.startup(), the system will simply get all of your children and reorder so that there are no empty columns and the first columns are the ones with more items if needed.

This is a jsfiddle you can use to check http://jsfiddle.net/Rj4xV/3/ the bug. Simply move the widget.startup(); call from line 21 to line 15 to see the bug happening. The two grids should be the same, not matter where .startup() is called but it is not what is happening. You can remove the comments on the first 3 addChild() calls to see that if it is evenly distributed before the startup() it also work

Change History (2)

comment:1 Changed 5 years ago by bill

Component: DojoxDojoX Layout

comment:2 Changed 3 years ago by dylan

Milestone: tbd1.12
Resolution: patchwelcome
Status: newclosed

Given that no one has shown interest in creating a patch in more than a year, I'm closing this as patchwelcome. Please let us know if you would like to get involved in helping make this change to Dojo!

Note: See TracTickets for help on using tickets.