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?
精彩评论