1. #1
    Sencha User rbraddy's Avatar
    Join Date
    Jul 2009
    Location
    Houston, TX
    Posts
    144
    Vote Rating
    7
    rbraddy is on a distinguished road

      0  

    Default VBox Splitter Not Working

    Hi,

    Any reason my splitter created with SA does not work? (the splitter is shown, but cannot be selected to resize the panels)

    Thanks
    Rick

    Code:
    Ext.define('MyApp.view.MyViewport', {
        extend: 'Ext.container.Viewport',
    
    
        layout: {
            type: 'fit'
        },
    
    
        initComponent: function() {
            var me = this;
    
    
            Ext.applyIf(me, {
                items: [
                    {
                        xtype: 'panel',
                        layout: {
                            align: 'stretch',
                            type: 'vbox'
                        },
                        items: [
                            {
                                xtype: 'gridpanel',
                                flex: 1,
                                title: 'Control Panel',
                                forceFit: true,
                                columns: [
                                    {
                                        xtype: 'gridcolumn',
                                        dataIndex: 'string',
                                        text: 'Name'
                                    },
                                    {
                                        xtype: 'gridcolumn',
                                        dataIndex: 'string',
                                        text: 'Status'
                                    },
                                    {
                                        xtype: 'gridcolumn',
                                        dataIndex: 'string',
                                        text: 'Last Action'
                                    },
                                    {
                                        xtype: 'gridcolumn',
                                        dataIndex: 'string',
                                        text: 'Action Time'
                                    }
                                ],
                                viewConfig: {
    
    
                                },
                                dockedItems: [
                                    {
                                        xtype: 'toolbar',
                                        dock: 'top',
                                        items: [
                                            {
                                                xtype: 'button',
                                                itemId: 'testBtn',
                                                text: 'TEST Button'
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                height: 10,
                                width: 10
                            },
                            {
                                xtype: 'gridpanel',
                                flex: 1,
                                title: 'Log',
                                columns: [
                                    {
                                        xtype: 'gridcolumn',
                                        width: 972,
                                        dataIndex: 'string',
                                        text: 'Event'
                                    }
                                ],
                                viewConfig: {
    
    
                                }
                            }
                        ]
                    }
                ]
            });
    
    
            me.callParent(arguments);
        }
    
    
    });

  2. #2
    Sencha User Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Olney, MD
    Posts
    1,953
    Vote Rating
    65
    Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice

      0  

    Default

    It's early and I have only had 1 cup of coffee but ...

    I don't see a splitter?

    I see this which is quite weird
    Code:
                            {
                                height: 10,
                                width: 10
                            },
    Phil Strong
    @philstrong

  3. #3
    Sencha User rbraddy's Avatar
    Join Date
    Jul 2009
    Location
    Houston, TX
    Posts
    144
    Vote Rating
    7
    rbraddy is on a distinguished road

      0  

    Default

    Quote Originally Posted by Phil.Strong View Post
    It's early and I have only had 1 cup of coffee but ...

    I don't see a splitter?

    I see this which is quite weird
    Code:
                            {
                                height: 10,
                                width: 10
                            },
    Indeed! Isn't that interesting. That's the "code" that Sencha Architect creates for a splitter. See attached screenshot.

    Is this an SA bug?

    Rick
    sa-splitter.jpg

  4. #4
    Sencha Premium Member
    Join Date
    Mar 2011
    Location
    Farmers Branch, TX
    Posts
    42
    Vote Rating
    0
    jbender11 is on a distinguished road

      0  

    Default splitter bug

    I see the same thing in my code. This used to work in earlier versions of Architect (prior to September 2012??), but has recently broken.

    The workaround that I use is to manually edit the code after deploying from Architect to add this:


    Code:
    xtype: 'splitter',

    It's painful but I only do it prior to UAT or production deployment.

    Hope that helps.

    John

  5. #5
    Sencha User rbraddy's Avatar
    Join Date
    Jul 2009
    Location
    Houston, TX
    Posts
    144
    Vote Rating
    7
    rbraddy is on a distinguished road

      0  

    Default

    Thanks John. I will give that a go. Appreciate the response.

    Hopefully this will get fixed in SA soon.

    Best,
    Rick

Thread Participants: 2

Tags for this Thread