Ticket #6777 (closed defect: fixed)
BorderContainer programmatic wrong splitters
| Reported by: | giovanni.porcari@… | Owned by: | peller |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.2 |
| Component: | Dijit | Version: | 1.1.0 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
I think that there is a bug in the way BorderContainer? manage splitters. The problem happens when you create BorderContainer? programmatically and you call the startup method AFTER the creation of the children. In this case if one pane has a splitter you get 2 splitters and in the wrong place.
I attach a test that shows the problem. It must be placed in the same folder of other BordrContainer? test.
In the test you can see the wrong behaviour when the 'doPatch' variable is false.
Then I found a patch that seems able to fix the problem and you should be able to see that it works setting doPatch to true.
Please let me know if the bug is confirmed and if my patch is ok. I really have to use BorderContainer? and this bug is a show stopper for me.
Thank you
Giovanni Porcari
giovanni.porcari@…