Results 1 to 3 of 3

Thread: Resizable + wrap + doLayout

  1. #1
    Ext User
    Join Date
    Aug 2008
    Location
    Hungary
    Posts
    80

    Default Resizable + wrap + doLayout

    Hi! The wrap goes wrong after doLayout:

    PHP Code:
    var panel = new Ext.Panel({
        
    renderToExt.getBody(),
        
    items: [{
            
    id'textarea',
            
    xtype'textarea'
        
    }, {
            
    xtype'label',
            
    text':)'
        
    }]
    });
    new 
    Ext.Resizable('textarea', {
        
    handles's',
        
    minWidth60,
        
    wraptrue
    });
    panel.doLayout(); 
    Why?

  2. #2

    Default

    Quote Originally Posted by Gabor Turi View Post
    Hi! The wrap goes wrong after doLayout:

    PHP Code:
    var panel = new Ext.Panel({
        
    renderToExt.getBody(),
        
    items: [{
            
    id'textarea',
            
    xtype'textarea'
        
    }, {
            
    xtype'label',
            
    text':)'
        
    }]
    });
    new 
    Ext.Resizable('textarea', {
        
    handles's',
        
    minWidth60,
        
    wraptrue
    });
    panel.doLayout(); 
    Why?
    Had the same problem, but I haven't found out why...
    I chose to incapsulate my components in HTML <div>s and then apply the resizer to the external div...

    resizer = new Ext.Resizable('myDiv', {... });

    But I guess someone will suggest you a more elegant and professional way to solve this problem...

  3. #3
    Ext User
    Join Date
    Aug 2008
    Location
    Hungary
    Posts
    80

    Default

    My solution: overwrite the positionEl:
    PHP Code:
    var panel = new Ext.Panel({
        
    renderToExt.getBody(),
        
    items: [{
            
    ref'./textarea',
            
    xtype'textarea'
        
    }, {
            
    html':)'
        
    }]
    });
    var 
    resizer = new Ext.Resizable(panel.textarea.id, {
        
    handles's',
        
    minWidth60,
        
    wraptrue
    });
    panel.textarea.positionEl resizer.el;
    panel.doLayout(); 
    This works, but ...?

Similar Threads

  1. Replies: 2
    Last Post: 30 Jul 2009, 7:50 AM
  2. Resizable ContentPanel in Window not Resizable when Window isMaximed
    By francescoNemesi in forum Ext GWT: Discussion
    Replies: 0
    Last Post: 27 Jul 2009, 8:30 AM
  3. Ext.Resizable, wrap option in Firefox
    By ferr in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 24 Jun 2008, 10:31 AM
  4. doLayout on IE
    By zig999 in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 16 Apr 2008, 10:12 AM
  5. when to use doLayout()?
    By fangzhouxing in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 15 Oct 2007, 11:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •