Apr 02, 2012, 3:32 PM
[CLOSED] [1.3] Label Wordwrap on topbar
Hi,
I try to set wordwrap or similar to label inside a topbar but doesn't work.
The follow is the example:
What I wrong?
Thanks
I try to set wordwrap or similar to label inside a topbar but doesn't work.
The follow is the example:
<%@ Page Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
string s = "S";
for (int i = 0; i < 245; i++)
{
s += "l";
}
s += "E";
lbl.Text = s;
}
</script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Ext.NET Example</title>
</head>
<body>
<ext:ResourceManager ID="ResourceManager1" runat="server" CleanResourceUrl="false" />
<ext:Panel runat="server" Width="400">
<TopBar>
<ext:Toolbar runat="server" Height="100" AutoDoLayout="true">
<Items>
<ext:Label runat="server" Height="100" ID="lbl" BoxMaxWidth="100" LabelAlign="Top" LabelSeparator=":"
FieldLabel="Text">
</ext:Label>
</Items>
</ext:Toolbar>
</TopBar>
<Items>
</Items>
</ext:Panel>
</body>
</html>
If I put the label inside a items collection the "wordwrap" works.What I wrong?
Thanks
Last edited by Daniil; Apr 03, 2012 at 1:44 PM.
Reason: [CLOSED]