PDA

View Full Version : Button StyleSpec Fails



Timothy
Aug 21, 2008, 7:36 PM
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/tr/xhtml11/dtd/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Demo</title>
</head>
<body>
<form id="Form1" runat="server">
<asp:ScriptManager runat="server" EnablePartialRendering="True" />
<ExtJS:ScriptManager ID="ScriptManager1" runat="server" StateProvider="PostBack" Theme="Gray" />
<ExtJS:Button ID="btnLogin" runat="server" Text="Login" StyleSpec="display: inline-table; margin-right: 2px; width: 60px;" />
</form>
</body>


SVN Fails in IE6.0 works in FF3.0

Cheers,
Timothy

geoffrey.mcgill
Aug 21, 2008, 8:04 PM
The <ext:Button> is a tricky one to style. It's getting a rework in a future version of ExtJS (v3.0 I think?) which should help improve height/width and css support.

A while back someone found a hack for setting the width that seemed to work quite well. See, http://forums.ext.net/showthread.php?threadid=245-4-1.aspx#bm247

Hope this helps.

Timothy
Aug 21, 2008, 8:33 PM
Worked as of ExtJS2.1, was the switch over that killed in IE6.0

I'll check the hack out.

Cheers,
Timothy