Nov 20, 2014, 7:51 PM
Container Dynamically generated from server with VBoxLayout align=center it's not working
Hi!
A Container Dynamically generated from server with VBoxLayout align=center it's not align. It's working fine, but the element it align
A Container Dynamically generated from server with VBoxLayout align=center it's not align. It's working fine, but the element it align
<ext:Toolbar ID="EscritorioToolBar" runat="server" Width="800" Floating="true" ClassicButtonStyle="true" Flat="true" Border="false" Shadow="false">
<Defaults>
<ext:Parameter Name="Scale" Value="small" /> <%-- esto define el tama?o de la tipografia --%>
</Defaults>
</ext:Toolbar>
<ext:Toolbar ID="EscritorioToolBar" runat="server" Width="800" Floating="true" ClassicButtonStyle="true" Flat="true" Border="false" Shadow="false">
<Defaults>
<ext:Parameter Name="Scale" Value="small" /> <%-- esto define el tama?o de la tipografia --%>
</Defaults>
</ext:Toolbar>
var imgButton = new Ext.Net.ImageButton();
imgButton.ID = "imageButton1";
imgButton.ImageUrl = @"resources/" + "cmd.png"; //+ menu.Icono.ToLower() + ".png";
imgButton.Width = 45;
imgButton.AddListener( "click", new JFunction("alert('hello')) );
var lblTexto = new Ext.Net.Label("Something...");
lblTexto.Cls = "dv-buttonText";
var containerConfig = new Ext.Net.Container.Config
{
Layout = LayoutType.VBox.ToString(),
Width = 60,
Height = 80
};
containerConfig.LayoutConfig.Add(new VBoxLayoutConfig {Align = VBoxAlign.Center, Pack = BoxPack.Center});
var container = new Ext.Net.Container(containerConfig);
container.Add(imgButton);
container.Add(lblTexto);
EscritorioToolBar.Items.Add(container);
Thank in advance!
Last edited by Daniil; Nov 21, 2014 at 6:07 AM.
Reason: Please use [CODE] tags