HTMLEditor and Percentage

  • Having exhausted my and EXTJS.com's searching abilities I can't seem to find any help on a problem I'm having with the HTMLEditor.

    I have a form that resizes almost every element by percentage and works perfectly, except for the HTMLEditor.
    All of my columns, fieldsets, every is perfect.
    But my HTMLeditor will only size properly when it is given a width using pixels and not percentages. (while it stretches across the whole screen, it only has an active frame of 300pixels wide -- See attached screenshot)

    How can I resize the htmleditor, so it will resize using percentages.
    Realizing that I will need to utilize setSize could someone please give me an example of how I can make this work?

    Thanks

    David...


  • Jack, your advice worked like a charm. It turns out the container div was only off by a few pixels and that was easily remedied.

    Thank you so much for the quick response. That worked perfectly.

    David...


  • When the window resizes, you will need to grab the size of the containing element and call set size with the appropriate dimensions. Maybe soemthing like:

    Ext.EventManager.onWindowResize(function(){
    var ct = Ext.get('your-containing-element');
    Ext.getCmp('your-editors-id').setSize(ct.getWidth()*.95); // or whatever your percentage
    });







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about HTMLEditor and Percentage , Please add it free.