hi guys we’re doing a project wherein we have to write the code for the placement of flowchart elements. there is just one problem with the sorting of the elements.
ideally, it should look like this:
but right now it looks like this:
attached is the code. and the function that causes the boxes to sort wrong is this:
sorry if it isnt visually appealing, our main concern right now really is to get the placement correct. is there anything else i need to post to make it easier for you guys?
ok here you go. the shiftDownElements function i mentioned is on the FlowChartElementsManager2.js file. the flowcharts themselves are just boxes when you view it, we’re determining the placements of the boxes thru firebug.
Note that JavaScript doesn’t guarantee any particular order for the properties. So you cannot expect the property that was defined first to appear first, it might come last.