Apr 14, 2010, 10:00 AM
[CLOSED] Incorrect Rendering of Child controls when parent user control is loaded in collapsed state
i,
some time ago I posted the problem that when controls were housed in a panel that was loaded with collapsed=true; when the panel is uncollapsed, the controls were incorrectly rendered.
The solution you gave me was to add this listener to the panel:
<Listeners>
<Expand Handler="this.cascade(function(c){c.onTriggerClick && ((c.lastSize && (c.lastSize.width=0)) || true) && c.setWidth(200)});" Single="true" />
</Listeners>
Now I am having the same problem, only this time the controls belong to a usercontrol; The above solution does not seem to work in this case.
I have atached 2 screen dumps to illustrate the problem, in each case the user control is circled in red: The first shows how the usercontrol looks when it is loaded with collapsed=false;
The second shows how the usercontrol looks when it is loaded with callapsed=true, and then it is uncollapsed by the user.
some time ago I posted the problem that when controls were housed in a panel that was loaded with collapsed=true; when the panel is uncollapsed, the controls were incorrectly rendered.
The solution you gave me was to add this listener to the panel:
<Listeners>
<Expand Handler="this.cascade(function(c){c.onTriggerClick && ((c.lastSize && (c.lastSize.width=0)) || true) && c.setWidth(200)});" Single="true" />
</Listeners>
Now I am having the same problem, only this time the controls belong to a usercontrol; The above solution does not seem to work in this case.
I have atached 2 screen dumps to illustrate the problem, in each case the user control is circled in red: The first shows how the usercontrol looks when it is loaded with collapsed=false;
The second shows how the usercontrol looks when it is loaded with callapsed=true, and then it is uncollapsed by the user.