2011-09-07 48 views
0

確實很簡單。當Diji TitlePane摺疊時內容不會移動

我有兩個ContentPanel可以動態加載內容。我加載的內容動態地包含TitlePanes。當我摺疊這些TitlePanes時,TitlePane下的內容不會向上移動。

(你可能會問我爲什麼不將內容加載到ContentPanes內TitlePanes。我不這樣做的原因是因爲TitlePanes不會擴大覆蓋動態內容)

回答

0

答案可以找到here。你所需要做的就是添加doLayout="false

<div dojoType="dijit.layout.ContentPane" id="..." splitter="false" doLayout="false"></div>