AccordianContainer and ContentPane resizing problem

View: New views
2 Messages — Rating Filter:   Alert me  

AccordianContainer and ContentPane resizing problem

by Katheeskumar Mahalingam :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi guys,
   I'm using the custom build of the dojo version 1.3.2. I'm having a issue here.

Here is the description :
  1. I have a ContentPane and It has a TabContainer.
  2. Within that TabContainer I have a AccordianContainer

  3. Now what I want is I should be able to create and/or remove some ContentPane within that AccordianContainer
  4. For that I have written some javascript functions and I included that file with this mail

  5. addNewPane() function will add a new ContentPane and deletePane() function will remove the ContentPane.

  6. When adding and deleting ContentPane I'm resizing the AccordianContainer and the TabContainer manually using a written function called resize()

  Now my issue is when removing the ContentPane it's removing correctly and resizing. At this point everything is correct. But after leaving from the manual resizing function of mine it's again calling the resizing function which defined in /dojo/dijit/layout/ContentPane.js. This function got called couple of times but in the end it's absolutely unnecessary.  By doing so actually It's actaually making the alignment incorrect and hiding some of mu ContentPanes which are in down.

To understand this behaviour run the above file and Create some ContentPanes and then try removing. Worst case happens when there is 3 ContentPanes and you removed one and now the second is not visible at all. But of course it's there. After removing clicking one of the ContentPane will make the alignment correct.

So I want to know the reason for this behavior. Why that function calling happened even after I resized all. Is it a bug or can I fix it in anyway?

Please spent some of your minutes and run the file. You will understand the problem. There some javascript functions but you don't need to look into them as they are not related with issue. All you have to concentrate is the functions which I mentioned above.

I put the a alert like " alert("Leaving the deletePane() function"); " this. You can see that until clicking this everything is in place. Once you click OK alignment becomes wrong and hiding some of the panes.

I'm hoping to hear a reply soon since I have already spent lot of time with this problem.

Target Profile

_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://docs.dojocampus.org
Dojo-interest@...
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

Re: AccordianContainer and ContentPane resizing problem

by Bill Keese-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

That's a lot of code to look through, but in general you shouldn't have to have any manual resize code.  If you can make a much smaller test case that shows the problem adding and removing panes from and accordion inside a tabcontainer inside a contentpane inside a table.... then I can take a look.

On Wed, Nov 4, 2009 at 7:49 PM, Katheeskumar Mahalingam <katheeskumar@...> wrote:
Hi guys,
   I'm using the custom build of the dojo version 1.3.2. I'm having a issue here.

Here is the description :
  1. I have a ContentPane and It has a TabContainer.
  2. Within that TabContainer I have a AccordianContainer

  3. Now what I want is I should be able to create and/or remove some ContentPane within that AccordianContainer
  4. For that I have written some javascript functions and I included that file with this mail

  5. addNewPane() function will add a new ContentPane and deletePane() function will remove the ContentPane.

  6. When adding and deleting ContentPane I'm resizing the AccordianContainer and the TabContainer manually using a written function called resize()

  Now my issue is when removing the ContentPane it's removing correctly and resizing. At this point everything is correct. But after leaving from the manual resizing function of mine it's again calling the resizing function which defined in /dojo/dijit/layout/ContentPane.js. This function got called couple of times but in the end it's absolutely unnecessary.  By doing so actually It's actaually making the alignment incorrect and hiding some of mu ContentPanes which are in down.

To understand this behaviour run the above file and Create some ContentPanes and then try removing. Worst case happens when there is 3 ContentPanes and you removed one and now the second is not visible at all. But of course it's there. After removing clicking one of the ContentPane will make the alignment correct.

So I want to know the reason for this behavior. Why that function calling happened even after I resized all. Is it a bug or can I fix it in anyway?

Please spent some of your minutes and run the file. You will understand the problem. There some javascript functions but you don't need to look into them as they are not related with issue. All you have to concentrate is the functions which I mentioned above.

I put the a alert like " alert("Leaving the deletePane() function"); " this. You can see that until clicking this everything is in place. Once you click OK alignment becomes wrong and hiding some of the panes.

I'm hoping to hear a reply soon since I have already spent lot of time with this problem.

_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://docs.dojocampus.org
Dojo-interest@...
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest



_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://docs.dojocampus.org
Dojo-interest@...
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest