Using CuteEditor with dynamic height?

Last post 09-07-2012, 7:47 AM by empty. 2 replies.
Sort Posts: Previous Next
  •  09-06-2012, 10:03 AM 74587

    Using CuteEditor with dynamic height?

    Hi!

     

    I'm using the CuteEditor in the detail pane of a master/detail layout. In between there is a splitter to resize the areas.

    The problem is that i could not find a way to let the Editor automaticaly resize to the hight of its parent (the detail pane).

     

    So the question:

    Is there a common way to do this or do i have to find a css/js "workaround"?

     

    Thank you & greetings

    Dominik 

  •  09-07-2012, 7:17 AM 74594 in reply to 74587

    Re: Using CuteEditor with dynamic height?

    Hi empty,

     

    The editor has not the setting to adjust the height as its parent control. You can adjust the height of editor when the user drop the splitter by the code below.

     

    <script>
    function adjustHeight()
    {
        var editor1=document.getElementById("<%= editor1.ClientID %>");
        editor1.SetHeight(1000);
    }
    </script>
     

    Regards,

     

    Ken 

  •  09-07-2012, 7:47 AM 74597 in reply to 74594

    Re: Using CuteEditor with dynamic height?

    As I have done it =)

    Thank you!

View as RSS news feed in XML