Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
Cute Editor for .NET
»
Re: why height="100%" doesn't work?
Re: why height="100%" doesn't work?
11-19-2009, 7:46 PM
Kenneth
Joined on 02-13-2008
Posts 3,886
Re: why height="100%" doesn't work?
Reply
Quote
Hi wolf11th,
Try this way:
<%@ Page Language=
"C#"
AutoEventWireup=
"True"
%>
<%@ Register Namespace=
"CuteEditor"
Assembly=
"CuteEditor"
TagPrefix=
"CE"
%>
<!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 id=
"Head1"
runat=
"server"
>
</head>
<body >
<form id=
"Form1"
runat=
"server"
>
<CE:Editor ID=
"Editor1"
runat=
"server"
Width=
"100%"
>
</CE:Editor>
</form>
</body>
</html>
<script type=
"text/javascript"
>
var editor1=document.getElementById(
'<%= Editor1.ClientID %>'
);
function CuteEditor_OnInitialized(editor)
{
editor1.SetHeight(document.documentElement.clientHeight-40);
}
window.onresize=function()
{
editor1.SetHeight(document.documentElement.clientHeight-40);
}
</script>
Regards,
Ken
View Complete Thread