Fit to Window on Coda Slider

Last post 04-06-2011, 3:33 AM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  04-05-2011, 5:48 AM 67001

    Fit to Window on Coda Slider

    I have a serious problem when I click on the full screen button (fit to window) because the cute editor is inside a coda slider.... could make a full screen in a popup??
     
    Help me please!
  •  04-06-2011, 3:33 AM 67039 in reply to 67001

    Re: Fit to Window on Coda Slider

    Hi Alex1234,
     
    Catch the full screen command and set the width and height directly.
     
    Example
     
    1. <%@ Page Language="C#" AutoEventWireup="true" %>  
    2.   
    3. <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>  
    4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
    5.   
    6. <html xmlns="http://www.w3.org/1999/xhtml">  
    7. <head id="Head1" runat="server">  
    8.     <title></title>  
    9. </head>  
    10. <body>  
    11.     <form id="form1" runat="server">  
    12.         <CE:Editor ID="editor1" runat="server" >  
    13.         </CE:Editor>  
    14.   
    15.     </form>  
    16. </body>  
    17. </html>  
    18. <script>  
    19. function CuteEditor_OnCommand(editor,command,ui,value)  
    20.  {  
    21.     if(command=="FullPage")  
    22.     {  
    23.         editor.style.width="1000px";  
    24.         editor.SetHeight(1000);  
    25.         return true;  
    26.     }  
    27.   
    28. }  
    29.   
    30. </script> 
    Regards,
     
    Ken
View as RSS news feed in XML