Nov 18, 2015, 5:17 PM
[CLOSED] Container HBoxLayout
Hello,
I am trying to left align one DisplayField, and right align the second one, but I couldn't get it working. The second label doesn't respect the parent container's width (900px). What's wrong?
Thank you!
I am trying to left align one DisplayField, and right align the second one, but I couldn't get it working. The second label doesn't respect the parent container's width (900px). What's wrong?
Thank you!
<%@ Page Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
if (!X.IsAjaxRequest)
{
}
}
</script>
<!DOCTYPE html>
<html>
<head runat="server">
<title></title>
<script type="text/javascript">
</script>
</head>
<body>
<ext:ResourceManager runat="server" />
<ext:FormPanel ID="FormPanel1" runat="server" Frame="True" MinHeight="200" Border="False" Layout="Form" BodyPadding="10" ButtonAlign="Left" AutoScroll="True">
<Items>
<ext:Container runat="server" Layout="HBoxLayout" Width="900" StyleSpec="background-color:#aaa;" >
<Items>
<ext:DisplayField runat="server" ID="DF1" FieldLabel="Label1" Text="13456"></ext:DisplayField>
<ext:Component runat="server" Flex="1" />
<ext:DisplayField runat="server" ID="DF2" FieldLabel="Label2" Text="ABCDE" ></ext:DisplayField>
</Items>
</ext:Container>
</Items>
</ext:FormPanel>
</body>
</html>
Last edited by Daniil; Nov 19, 2015 at 6:23 AM.
Reason: [CLOSED]