PDA

View Full Version : [CLOSED] Align button and textbox with fieldcontainer.



luiz
Aug 02, 2013, 9:51 PM

Baidaly
Aug 03, 2013, 12:01 AM
Hello!

Try the following:



<ext:FieldContainer ID="FieldContainerMapa" runat="server" Layout="HBoxLayout" >
<LayoutConfig>
<ext:HBoxLayoutConfig runat="server">
<CustomConfig>
<ext:ConfigItem Name="align" Value="bottom" />
</CustomConfig>
</ext:HBoxLayoutConfig>
</LayoutConfig>
<Items>
<ext:TextField ID="TextFieldLink" runat="server" FieldLabel="Link do mapa" />
<ext:Button ID="Botao" runat="server" Icon="Accept" Text="Legal" />
</Items>
</ext:FieldContainer>

luiz
Aug 03, 2013, 12:32 AM
Hello Baidaly.

Thanks for your help.

In the Crhome version 28.0.1500.95 m not work.
In firefox and IE the textfield does not not resize.

See:

6682

Baidaly
Aug 03, 2013, 12:53 AM
Please, set Flex attribute for the TextField:



<ext:FieldContainer ID="FieldContainerMapa" runat="server" Layout="HBoxLayout" >
<LayoutConfig>
<ext:HBoxLayoutConfig runat="server">
<CustomConfig>
<ext:ConfigItem Name="align" Value="bottom" />
</CustomConfig>
</ext:HBoxLayoutConfig>
</LayoutConfig>
<Items>
<ext:TextField ID="TextFieldLink" runat="server" FieldLabel="Link do mapa" Flex="1" />
<ext:Button ID="Botao" runat="server" Icon="Accept" Text="Legal" />
</Items>
</ext:FieldContainer>

luiz
Aug 03, 2013, 10:48 PM
Hy Baidaly,

It worked well.

Please close this thread.

Thanks for your help. :)