Results 1 to 2 of 2

Thread: How can I move the splitter (Ext.resizer.Splitter) programmatically?

  1. #1
    Ext JS Premium Member
    Join Date
    Nov 2011
    Posts
    3
    Vote Rating
    0
      0  

    Default How can I move the splitter (Ext.resizer.Splitter) programmatically?

    Hi All,

    How can I move the splitter (Ext.resizer.Splitter) programmatically?
    I search for something like:

    getSplitter.setDivider(0.3)


    Example code:
    Code:
        Ext4.create('Ext.container.Viewport', {
                region: "center",
                layout: {
                    type: 'vbox',       // Arrange child items vertically
                    align: 'stretch',    // Each takes up full width
                    padding: 5
                },
    
    
                items: [
                     Ext4.create("Ext.button.Button", { text: "First", flex: 1     }),
                    Ext4.create("Ext.resizer.Splitter", {            }),
                    Ext4.create("Ext.button.Button", { text: "Second", flex: 1    })
                ]
            });

    Daniel

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    The splitter component doesn't do the resizing. The SplitterTracker does and after you do any positioning you need to call performResize.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Posting Permissions

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