This is a migrated thread and some comments may be shown as answers.

Button location Diverge

1 Answer 49 Views
FormDecorator
This is a migrated thread and some comments may be shown as answers.
vincent chen
Top achievements
Rank 1
vincent chen asked on 08 Jul 2010, 12:59 PM
Hi,
I use the RadFormDecorator control to beautify the page control,but i don't know why same page in different browser will display different..And why the button will diverge the textbox horizontal...
Could you help me how to define?Thank you !

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="All" />
<table style="width:600px;" cellpadding="2" cellspacing="2">
<tr>
    <td style="width:10%">ID:</td>
    <td style="width:40%"><input type="text" /></td>
    <td style="width:15%">Name:</td>
    <td style="width:35%"><input type="text" /><input type="button" value="..." /></td>
</tr>
</table>
    </form>
</body>
</html>

1 Answer, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 12 Jul 2010, 11:18 AM
Hi Vincent,

This Firefox/Safari issue has been fixed for the upcoming 2010 Q2 release.
Please, find a fast fix, that will align the buttons in Firefox when are placed next to a textbox:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head id="Head1" runat="server">
    <title>无标题页</title>
    <style type="text/css">
        /*  Fixed button position when it is placed next to a textbox - Firefox/Safari */
        .rfdDecorated,
        a.rfdSkinnedButton
        {
            vertical-align: middle;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="All" />
    <table style="width: 600px;" cellpadding="2" cellspacing="2">
        <tr>
            <td style="width: 10%">
                ID:
            </td>
            <td style="width: 40%">
                <input type="text" />
            </td>
            <td style="width: 15%">
                Name:
            </td>
            <td style="width: 35%">
                <input type="text" /><input type="button" value="..." />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>

Please, note that when you update to the upcoming version 2010 Q2, it will not be necessary to use it anymore, as the fix will be placed in the base RadFormDecorator CSS file.

Kind regards,
Bojo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
FormDecorator
Asked by
vincent chen
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Share this question
or