I’m using the dojo.Layout TabContainer and TabPane controls from the extension Library. Inside of the tabs I have floating panes. When I move the pane I would like to keep the current position of the pane when I switch from tab1 to tab2. This does not work. The element is always moved to the original position.
I also tested with dijit.layout.TabContainer and dijit.layout.ContentPane and this works as expected. The video demonstrates the behaviour.
Is there any parameter to set for the controls to work like the dijit.layout.TabContainer and dijit.layout.ContentPane do?
I believe objects inside the tabpane are fetched from server when you are switching tabs. I had many problems with the control because it breaks partial refreshing objects inside it.
Is there any onload script fired inside the cc_box custom controls?
Great control btw!
Yes, I register the events in the onLoad event of the control.
Have removed the code and tested again. Same result.
I do not have that extlib version version installed, but maybe it is not setting the property ‘refreshOnShow’ properly. If the refreshOnShow does not work you can also add a normal dojo attribute ‘refreshOnShow’ to ‘false’. It is probably firing onload scripts when switching tabs. Because the tabpane is based on the dijit.layout.Contentpane control, the ‘refreshOnShow’ must be the problem…. in theory 😉
No chance;tried with static refreshOnShow = false but that does noct change anything.
Downloaded your floating pane custom control. It fires some code when the floating pane is ‘showed’ (with dojo.connect).
When switching tabs, all child elements will be ‘showed’. I think the “onshow” event fires and resets the pane to the default. Maybe try to add a alert box in the onshow event function of the control, see what happens.