Changes between Initial Version and Version 1 of Ticket #8478


Ignore:
Timestamp:
Jan 23, 2009, 4:15:35 AM (11 years ago)
Author:
bill
Comment:

Thanks for the test case. (I've attached it rather than inlining it as per our convention).

I reproduced the problem about 2 panes being initially selected against 1.2, but it's working in trunk.

As for "yz" disappearing when you press the "add" button, I cannot reproduce that.

Anyway, can you try against trunk (you can download from nightly.dojotoolkit.org) to see if that fixes some/all of your problems?

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #8478

    • Property Owner anonymous deleted
    • Property Priority changed from high to normal
    • Property Component changed from General to Dijit
    • Property Summary changed from messing up accordionContainer(one time of display bug) to AccordionContainer: messing up (one time of display bug)
  • Ticket #8478 – Description

    initial v1  
    16161. the same issue with issue2 above.
    1717in fact, in the test case, if we change the order of statements of add.
    18 
     18{{{
    1919        dijit.byId("frameId").selectChild(dijit.byId("ad"));
    20        
    2120        dijit.byId("frameId").addChild(ap4self,4);
     21}}}
    2222to:
    23 
     23{{{
    2424        dijit.byId("frameId").addChild(ap4self,4);
    2525        dijit.byId("frameId").selectChild(dijit.byId("ad"));
    26 
     26}}}
    2727then issue 2 doesn't exist. but still be here in my real application.
    2828
     
    3737
    3838
    39 
    40 
    41 there is the testcase file:
    42 ------------------------------------------------------------
    43 
    44 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11.dtd">
    45 
    46 <html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
    47 
    48 <head>
    49 
    50 <style type="text/css">
    51 @import "js/dojo/dojo/resources/dojo.css";
    52 </style>
    53 
    54 <link id="themeStyles" rel="stylesheet" href="js/dojo/dijit/themes/tundra/tundra.css">
    55 
    56 <script type="text/javascript" src="js/dojo/dojo/dojo.js"
    57         djConfig="isDebug:true, parseOnLoad:true, usePlainJson:true, locale:'zh-CN'">
    58 </script>
    59 
    60 <script type="text/javascript">
    61     dojo.require("dojo.parser");
    62     dojo.require("dijit.layout.AccordionContainer");
    63         dojo.require("dijit.dijit"); // optimize: load dijit layer
    64         dojo.require("dijit.layout.ContentPane");
    65 
    66         dojo.require("dijit.form.Button");
    67 
    68 function add()
    69 {
    70         dijit.byId("frameId").addChild(ap4self,4);
    71         dijit.byId("frameId").selectChild(dijit.byId("ad"));
    72 }
    73 function del()
    74 {
    75         dijit.byId("frameId").removeChild(ap4self);
    76         dijit.byId("frameId").selectChild(dijit.byId("ad"));
    77 }
    78 
    79 var ap4self = null;
    80 
    81         dojo.addOnLoad(function() {
    82                 ap4self=dijit.byId("sx");
    83                 dijit.byId("frameId").selectChild(dijit.byId("ad"));
    84                 dijit.byId("frameId").removeChild(ap4self);
    85         });
    86 
    87 </script>
    88 
    89 </head>
    90 
    91 <body class="tundra">
    92 
    93 <div id="frameId" dojoType="dijit.layout.AccordionContainer" duration="200"
    94     style="margin-right: 30px; width: 400px; height: 500px; overflow: hidden">
    95 
    96     <div id="ad" dojoType="dijit.layout.AccordionPane" selected="true" title="A-D">
    97             <p>A</p> <p>B</p> <p>C</p> <p>D</p>
    98     </div>
    99 
    100     <div dojoType="dijit.layout.AccordionPane" selected="true" title="E-F">
    101             <p>E</p> <p>F</p>
    102 
    103     </div>
    104 
    105     <!-- loading by indirect reference -->
    106 
    107     <div id="gl" dojoType="dijit.layout.AccordionPane" title="G-L">
    108            abc
    109     </div>
    110    
    111     <div dojoType="dijit.layout.AccordionPane" title="M-R">
    112                 <p>M</p>  <p>N</p>  <p>O</p>
    113                 <p>P</p>  <p>Q</p>
    114  <p>R</p>
    115     </div>
    116    
    117 
    118     <div id="sx" dojoType="dijit.layout.AccordionPane" title="S-X">
    119                <p>S</p>  <p>T</p>  <p>U</p>
    120                 <p>V</p>  <p>W</p>  <p>X</p>
    121     </div>
    122 
    123     <div dojoType="dijit.layout.AccordionPane" title="Y-Z">
    124                 <p>Y</p>
    125                 <p>Z</p>
    126     </div>
    127 </div>
    128 
    129 <button dojoType=dijit.form.Button onclick="add">add</button>
    130 
    131 <button dojoType=dijit.form.Button onclick="del">del</button>
    132 
    133 </body>
    134 
    135 </html>
    136 
    137 ----------------------------------------------------
    138 
    13939Thanks in advance.