A new animation action allowing for setting the position of a target id to the rendered position of another control will allow for better animating objects relatively to HTML flow positioned objects. A SizeAction would follow nicely.
Example:
<PositionAction AnimationTarget="Curtain" FromTarget="ContentTable" />
<SizeAction AnimationTarget="Curtain" FromTarget="ContentTable" />
<StyleAction AnimationTarget="Curtain" Attribute="display" Value="block" />
<StyleAction AnimationTarget="ContentTable" Attribute="visibility" Value="visible" />
<Resize Duration="1" AnimationTarget="Curtain" Height="0" />
Now I'm doing this with the following C# code:
ScriptManager.RegisterStartupScript(this, typeof(Page), "SetRectCURTAIN", string.Format(@"Sys.Application.add_load(function() {{
$common.setBounds($get('{1}'), $common.getBounds($get('{0}')));}});", ContentTable.ClientID, Curtain.ClientID), true);
Comments: This ticket was filed for a pre-15.1 version of AJAX Control Toolkit. If this is still an issue in v15.1 or later, please create a new inquiry.
Example:
<PositionAction AnimationTarget="Curtain" FromTarget="ContentTable" />
<SizeAction AnimationTarget="Curtain" FromTarget="ContentTable" />
<StyleAction AnimationTarget="Curtain" Attribute="display" Value="block" />
<StyleAction AnimationTarget="ContentTable" Attribute="visibility" Value="visible" />
<Resize Duration="1" AnimationTarget="Curtain" Height="0" />
Now I'm doing this with the following C# code:
ScriptManager.RegisterStartupScript(this, typeof(Page), "SetRectCURTAIN", string.Format(@"Sys.Application.add_load(function() {{
$common.setBounds($get('{1}'), $common.getBounds($get('{0}')));}});", ContentTable.ClientID, Curtain.ClientID), true);
Comments: This ticket was filed for a pre-15.1 version of AJAX Control Toolkit. If this is still an issue in v15.1 or later, please create a new inquiry.