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

Form Decorator not workeing for controls contained in a hidden div

1 Answer 116 Views
FormDecorator
This is a migrated thread and some comments may be shown as answers.
ony
Top achievements
Rank 1
ony asked on 14 Apr 2008, 06:39 AM
if controls are contained in a div with style display:none the look in Internet Explorer 7 is incorrect.

see the sample:

------------------------------------------------------------------------------

<!

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>Decorate button</title>

<script type="text/javascript">

function

pageLoad() {

}

function

show_div()

{

var div = $get("divContainer");

div.style.display=

"";

}

</script>

</

head>

<

body>

<form id="form1" runat="server">

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">

</telerik:RadScriptManager>

<telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" />

<div style="display:none;" id="divContainer">

<div style="padding:3px;">

<span>

<input id="btnLoginOk" type="button" value="Conferma"/>

</span>

<span>

<input id="btnLoginCancel" type="button" value="Annulla" title="" />

</span>

</div>

</div>

<input id="btnShow" type="button" value="Show" onclick="show_div();" />

</form>

</

body>

</

html>

1 Answer, 1 is accepted

Sort by
0
Tervel
Telerik team
answered on 17 Apr 2008, 06:27 AM
Hi Onorio,

Thank you for the feedback. I was able to reproduce the issue. Indeed, while the buttons look fine in FireFox and IE6, their background image is not as wide as it should in IE7 (which is strange, as in general something that works in IE6 works in IE7 as well). We logged the problem, and we will do our best to have it fixed for Q1 SP1.

Best regards,
Tervel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
FormDecorator
Asked by
ony
Top achievements
Rank 1
Answers by
Tervel
Telerik team
Share this question
or