开发者

Refresh layout of dijit.layout.ContentPane

I have a dojo TabContainer that has a BorderContainer child, with a left region and a center region ContentPanes.

-TabContainer
    -BorderContainer
        -ContentPane (left)
        -dojox.layout.ContentPane (center)

I have it setup so that the left ContentPane is collapsible (by replacing it with a slimmer ContentPane) which works fine. However, the idea of this functionality is to make the center (dojox.layout.ContentPane) region wider bu开发者_C百科t when the left pane is collapsed to the slim one, the center region stays the same width.

Now I know I can call refresh() on the center ContentPane but this also refreshes the content as the center ContentPane is retrieved via href - which I don't what as it loses changes to form data.

So how do I get the center ContentPane to refresh it's layout without manually figuring out the proper width and calling resize()?


Or could you use dojox.layout.ExpandoPane. It's a ContentPane that has a 'click to minimise' ability.


how are you replacing the left pane? Are you using addChild/removeChild methods? How about just changing the widthof the left pane rather than replacing it?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜