Editor height with doctype XHTML 1.0 Transitional

  •  05-24-2007, 12:16 AM

    Editor height with doctype XHTML 1.0 Transitional

    I would like the editor to fill the browser window except for a navigation bar at the top and a sidebar at the left. If I create a new page (VS 2005) and set the editor up as follows (as a test with no header and sidebar), the editors height renders at about 280px. 

    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="test.aspx.vb" Inherits="test" %>
    <%
    @ Register Assembly="CuteEditor" Namespace="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">
          <div>
             <CE:Editor id="Editor1" runat="server" Height="100%" ></CE:Editor>
          </div>
       </form>
    </
    body>
    </
    html>
     
    If I remove the DOCTYPE it resizes to a height of 100%. I am using the editor in a master page out of my control where I cannot remove the doctype nor do I want to. How do I make the editor fill the browser? I have looked at runtimeStyle using script but can't get it to work.
View Complete Thread