PDA

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



luiz
Aug 02, 2013, 8:51 PM

Baidaly
Aug 02, 2013, 11:01 PM
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 02, 2013, 11:32 PM
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 02, 2013, 11:53 PM
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, 9:48 PM
Hy Baidaly,

It worked well.

Please close this thread.

Thanks for your help. :)