Re: why height="100%" doesn't work?

  •  11-19-2009, 7:46 PM

    Re: why height="100%" doesn't work?

    Hi wolf11th,
     
    Try this way:
    1. <%@ Page Language="C#" AutoEventWireup="True" %>   
    2.   
    3. <%@ Register Namespace="CuteEditor" Assembly="CuteEditor" TagPrefix="CE" %>   
    4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  
    5.     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">   
    6. <html xmlns="http://www.w3.org/1999/xhtml">   
    7. <head id="Head1" runat="server">   
    8. </head>   
    9. <body >   
    10.     <form id="Form1" runat="server">   
    11.         <CE:Editor ID="Editor1" runat="server" Width="100%">   
    12.         </CE:Editor>   
    13.     </form>   
    14. </body>   
    15. </html>   
    16. <script type="text/javascript">   
    17. var editor1=document.getElementById('<%= Editor1.ClientID %>');   
    18. function CuteEditor_OnInitialized(editor)   
    19. {   
    20.  editor1.SetHeight(document.documentElement.clientHeight-40);    
    21. }   
    22. window.onresize=function()   
    23. {   
    24. editor1.SetHeight(document.documentElement.clientHeight-40);    
    25. }   
    26.   
    27. </script>  
    Regards,
     
    Ken
View Complete Thread