Results 1 to 3 of 3

Thread: How to make Ext.window expand upwards

  1. #1
    Sencha User
    Join Date
    Apr 2011
    Posts
    2
    Vote Rating
    0
      0  

    Default How to make Ext.window expand upwards

    Can anyone help on how to make Ext.window expand upwards, if it is possible?

  2. #2
    Sencha User jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    DC Area =)
    Posts
    16,364
    Vote Rating
    86
      0  

    Default

    You're more apt to get help if you post in the proper place! What version of the framework? What do you mean by expand upwards? Do you mean increase in height? That will have to happen by moving the element upwards while simultaneously animating its expansion.

  3. #3
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890
    Vote Rating
    89
      0  

    Default

    Ext4:

    Code:
    new Ext.window.Window({
        title: 'Test',
        width: 400,
        height: 200,
        bbar: [{
            text: 'Expand Upwards',
            handler: function(b) {
                var w = b.up('window'),
                    y = w.getPosition()[1],
                    h = w.getHeight();
    
                w.animate({
                    to: {
                        y: y - 30,
                        height: h + 30
                    }
                });
            }
        }]
    }).show();

Similar Threads

  1. how to make treepanel auto expand
    By rubynile in forum Ext 3.x: Help & Discussion
    Replies: 11
    Last Post: 14 Oct 2009, 5:16 AM
  2. Could I make RowExpander default expand?
    By zsumore in forum Community Discussion
    Replies: 6
    Last Post: 9 Jan 2009, 6:53 AM
  3. Make listener to expand my Panel
    By qtax87 in forum Ext 2.x: Help & Discussion
    Replies: 13
    Last Post: 7 Nov 2008, 6:20 AM
  4. How to make the AsyncTreeNode expand all the node
    By afei in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 13 Aug 2008, 12:21 AM
  5. Help: make app to expand as needed in BorderLayout
    By bhanugsm123Q in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 27 Apr 2008, 11:31 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
  •