Oct 03, 2014, 1:10 AM
[CLOSED] TextField notes are wrapped now right at the right margin of the TextField
Hello again:
In Ext.Net 2.5.2, the note of a TextField wraps at the right border of the text field. It didn't used to in Ext.net 2.1.1.
Here is a sample to see what happens (I modified this sample: /#/Form/Field_Note/Overview/).
In Ext.Net 2.5.2, the note of a TextField wraps at the right border of the text field. It didn't used to in Ext.net 2.1.1.
Here is a sample to see what happens (I modified this sample: /#/Form/Field_Note/Overview/).
<%@ Page Language="C#" %>
<%@ Register assembly="Ext.Net" namespace="Ext.Net" tagprefix="ext" %>
<!DOCTYPE html>
<html>
<head runat="server">
<title>Field Note - Ext.NET Examples</title>
<link href="/resources/css/examples.css" rel="stylesheet" />
<style>
.red-note {
color: red !important;
}
</style>
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server" />
<h2>1. Simple note </h2>
<ext:TextField runat="server" Note="Simple note lengthy note - yupee kai yei" IndicatorText="I am the indicator text"/>
<h2>2. Top note</h2>
<ext:ComboBox runat="server" Note="Top note" NoteAlign="Top" />
<h2>3. Custom note</h2>
<ext:TextArea runat="server" BoxLabel="CheckBox" Note="Red note" NoteCls="red-note" />
<h2>4. FormPanel with notes</h2>
<ext:FormPanel runat="server" BodyPadding="5" Width="270" Height="180">
<Items>
<ext:TextField runat="server" FieldLabel="Field1" Note="Description" />
<ext:TextField runat="server" FieldLabel="Field2" Note="Description" />
<ext:TextField runat="server" FieldLabel="Field3" Note="Description" />
<ext:TextField runat="server" FieldLabel="Field4" Note="Description" />
</Items>
</ext:FormPanel>
</form>
</body>
</html>
If fixed this using a css class for the note. The weird thing is that, in this case, if I don't specify a width for the text field, the text field grows horizontally as big as the note.<%@ Page Language="C#" %>
<%@ Register assembly="Ext.Net" namespace="Ext.Net" tagprefix="ext" %>
<!DOCTYPE html>
<html>
<head runat="server">
<title>Field Note - Ext.NET Examples</title>
<link href="/resources/css/examples.css" rel="stylesheet" />
<style>
.red-note {
color: red !important;
}
.notesForever {
overflow: visible;
white-space:nowrap;
}
</style>
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server" />
<h2>1. Simple note </h2>
<ext:TextField runat="server" Note="Simple note lengthy note - yupee kai yei" IndicatorText="I am the indicator text" NoteCls="notesForever"/>
<h2>2. Top note</h2>
<ext:ComboBox runat="server" Note="Top note" NoteAlign="Top" />
<h2>3. Custom note</h2>
<ext:TextArea runat="server" BoxLabel="CheckBox" Note="Red note" NoteCls="red-note" />
<h2>4. FormPanel with notes</h2>
<ext:FormPanel runat="server" BodyPadding="5" Width="270" Height="180">
<Items>
<ext:TextField runat="server" FieldLabel="Field1" Note="Description" />
<ext:TextField runat="server" FieldLabel="Field2" Note="Description" />
<ext:TextField runat="server" FieldLabel="Field3" Note="Description" />
<ext:TextField runat="server" FieldLabel="Field4" Note="Description" />
</Items>
</ext:FormPanel>
</form>
</body>
</html>
Last edited by Daniil; Oct 14, 2014 at 12:52 PM.
Reason: [CLOSED]