[CLOSED] Remove resizer

  1. #1

    [CLOSED] Remove resizer

    Hi,

    Is any way to remove a resizer from a div element?

    Resizer was created in this way:

            new Ext.Resizable(divEl, {
                dynamic: true,
                handles: "all",
                group: "myGroup",
                minHeight: 15,
                minWidth: 20,
                wrap: true
            });
    I think that other Ext.NET elements have a "resizer" property, but I don't see anything looking inseide Ext.get(divEl).

    Thanks.
    Last edited by Daniil; Nov 05, 2012 at 9:32 AM. Reason: [CLOSED]
  2. #2
    Hi @softmachine2011,

    There is a destroy method.

    Example
    var r = new Ext.Resizable(...);
    ...
    r.destroy();
  3. #3
    Must I store all my created resizable objects?

    Is not any way to access them from its owner "el"?
  4. #4
    I can't see any built-in option for this.

    You can store resizers in a HashMap.
    http://docs.sencha.com/ext-js/4-1/#!...t.util.HashMap
  5. #5
    Well,

    If there is not another option, then I will store it into each resizable element, adding an extra-property in this way:

    var resizer = new Ext.Resizable(divEl, {
        dynamic: true,
        handles: "all",
        group: "myGroup",
        minHeight: 15,
        minWidth: 20,
        wrap: true}
    );
    Ext.get(divEl).resizer = resizer;
    Regards.
  6. #6
    Yes, a good solution.

    Honestly, I thought about it, but wrong decided that it won't work. It should work well.
  7. #7
    Yes,

    I will prefer a more standard solution, but I perform a little test with this trick and it is working well at the moment as follows:

    var div = Ext.get(divEl);
    var resizer = div.resizer;
    if (resizer) {
        div.resizer = null;
        resizer.destroy();
    }
    Regards,

Similar Threads

  1. Add Remove
    By cbu in forum 1.x Help
    Replies: 3
    Last Post: Jan 10, 2012, 8:23 PM
  2. How remove VIEWSTATE?
    By luchexrb in forum 1.x Help
    Replies: 3
    Last Post: Jun 02, 2011, 8:41 PM
  3. Pan and Resizer in Image control
    By mirzasa in forum 1.x Help
    Replies: 0
    Last Post: Apr 11, 2011, 6:06 PM
  4. [CLOSED] [1.0] Problem with Portlet Resizer
    By juane66 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 11, 2010, 10:43 AM
  5. Resizer Vs. PanelResizer; Wanting split panel
    By camus92 in forum 1.x Help
    Replies: 2
    Last Post: Mar 06, 2009, 4:19 PM

Posting Permissions