Login Register

Grid resize within SplitContainer

If we place a Grid within a vertical SplitContainer, it does not resize its height when the SplitContainer is resized.

Is this a bug or am I missing something?

<div dojotype="dijit.layout.SplitContainer"
                orientation="vertical"
                sizerwidth="5"
                activesizing="0"
                sizemin="250"
                sizeshare="80"
        >
                <div dojotype="dijit.layout.ContentPane"
                        id="gridPane"
                        sizemin="150" sizeshare="60"
                >
                        <div dojotype="dojo.data.ItemFileReadStore"
                                        jsid="jsonStore" url="/v2/email/griddata.asp">
                        </div>
                        <div dojotype="dojox.grid.data.DojoData" jsid="model"
                                        rowsperpage="20" store="jsonStore" query="{ msgid: '*' }"
                                        clientsort="true">
                        </div>
                        <div id="grid" dojotype="dojox.Grid" model="model" structure="layout"></div>
                </div>
                <div dojotype="dijit.layout.ContentPane"
                                id="messagePane"
                                sizemin="50" sizeshare="60"
                                href="/v2/email/blankmail.htm"
                >
                </div>
        </div>

both

See #4900. But also, you should move the ItemFileReadStore declaration outside of the SplitContainer, and then get rid of the intermediate ContentPane definition wrapping the Grid.