Label editors don't resize

  1. #1

    Label editors don't resize

    This can be seen here:

    https://examples1.ext.net/Examples/E...asic/Overview/

    If an editor is currently visible, and you resize the browser window, the editor doesn't resize.



  2. #2

    RE: Label editors don't resize

    Hi dbassett74,

    You can add the following to a local .js file, or include within an inline <script type="text/javascript">. The scripts will add window resize functionality to all Ext.Editor widgets.

    Example

    Ext.Editor.override({
        doResize : function () {
            if (this.boundEl &amp;&amp; this.isVisible()) { 
                this.doAutoSize(); 
            }
        }
    });
    
    Ext.Editor.prototype.onShow = Ext.Editor.prototype.onShow.createSequence(function () {
        Ext.EventManager.onWindowResize(this.doResize, this);
    });
    
    Ext.Editor.prototype.onHide = Ext.Editor.prototype.onHide.createSequence(function () {
        Ext.EventManager.removeResizeListener(this.doResize, this);
    });
    At this time I would consider the Editor window resize functionality an edge case, so we will not be adding the above code to coolite.core.js. Developers can include the above script as required.

    Hope this helps.

    Geoffrey McGill
    Founder

Similar Threads

  1. Replies: 2
    Last Post: Aug 04, 2010, 2:26 AM
  2. Multiple Editors for
    By r_honey in forum 1.x Help
    Replies: 2
    Last Post: Jun 18, 2009, 2:27 AM
  3. If Value = X Then Disable Grid Editors...?
    By Tbaseflug in forum 1.x Help
    Replies: 4
    Last Post: Jun 11, 2009, 3:06 PM
  4. Replies: 3
    Last Post: Feb 22, 2009, 2:58 PM
  5. Replies: 3
    Last Post: Dec 10, 2008, 6:32 PM

Posting Permissions