PDA

View Full Version : [CLOSED] Ext.net v2 Beta release: I canÂīt change font-size of displayfield



supera
Mar 20, 2012, 1:30 PM
Hi

I canīt change font-size of displayfield... Iīm trying set the properties StyleSpec, FieldStyle and LabelStyle, as follow

Thanks for any help.



<%@ Page Language="vb" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>

<!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 runat="server">
<title></title>
</head>
<body>
<ext:ResourceManager ID="resManagerDividas" runat="server" />
<form id="form1" runat="server">
<ext:DisplayField runat="server" Text="I canīt change font-size of displayfield... (20px)" FieldStyle="font-size:20px;" StyleSpec="font-size:20px;" LabelStyle="font-size:20px;" />
<ext:DisplayField ID="DisplayField1" runat="server" Text="I canīt change font-size of displayfield... (15px)" FieldStyle="font-size:15px;" StyleSpec="font-size:15px;" LabelStyle="font-size:15px;"/>
<ext:DisplayField ID="DisplayField2" runat="server" Text="I canīt change font-size of displayfield... (10px)" FieldStyle="font-size:10px;" StyleSpec="font-size:10px;" LabelStyle="font-size:10px;"/>
<ext:DisplayField ID="DisplayField3" runat="server" Text="I canīt change font-size of displayfield... (5px)" FieldStyle="font-size:5px;" StyleSpec="font-size:5px;" LabelStyle="font-size:5px;"/>
</form>
</body>
</html>

Daniil
Mar 20, 2012, 1:51 PM
Hi,

Please use FieldCls.

Example


<style type="text/css">
.my-font {
font-size: 20px;
}
</style>

<ext:DisplayField
runat="server"
Text="Hello World!"
FieldCls="my-font" />

supera
Mar 20, 2012, 3:14 PM
FieldStyle should work? This is a bug? If yes, I will wait the fix.

Daniil
Mar 20, 2012, 3:58 PM
At the first glance I would consider it a bug. We are investigating further.

Daniil
Mar 20, 2012, 4:25 PM
We will fix it a bit later. We will update the thread when commit the fix.

supera
Mar 20, 2012, 5:56 PM
Ok... thanks Daniil!

Daniil
Mar 21, 2012, 9:04 PM
Please update from SVN.

supera
Mar 22, 2012, 2:17 PM
Works! Thanks a lot, Daniil.