1. #1
    Ext JS Premium Member
    Join Date
    Dec 2009
    Posts
    65
    Vote Rating
    3
    oklymenko is on a distinguished road

      0  

    Default Portal example

    Portal example


    I would love to move to 4.1 as soon as possible but I would not be able to do it without the portal example working.

    Does anybody know when it's going to be available?

    Thanks,
    Alex.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,754
    Vote Rating
    827
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    The portal example is in 4.1.0 beta 1
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Ext JS Premium Member
    Join Date
    Dec 2009
    Posts
    65
    Vote Rating
    3
    oklymenko is on a distinguished road

      0  

    Default


    Thanks!

    I must have missed it. I tried it in my project and it did not work out of the box. I guess I assumed it has not been converted yet. I will give it another try.

    Thanks again!

  4. #4
    Ext JS Premium Member
    Join Date
    Dec 2009
    Posts
    65
    Vote Rating
    3
    oklymenko is on a distinguished road

      0  

    Default


    It appears that the problem occurs when you put the portal inside a form panel:

    Code:
    Ext.onReady(function () {
        Ext.create('Ext.FormPanel', {
            renderTo: 'portal-test',
            title: 'Portal Test',
            margin: 20,
            width: 600,
            height: 400,
            layout: 'fit',
    
            items:
            [
                {
                    xtype: 'portalpanel',
                    region: 'center',
                    items:
                    [
                        {
                            items:
                            [
                                {
                                    title: 'Portlet 1',
                                    height: 100
                                },
                                {
                                    title: 'Portlet 2',
                                    height: 100
                                }
                            ]
                        }
                    ]
                }
            ]
        });
    });
    The error is thrown here:
    Code:
    getDockedItems : function(selector, beforeBody) {
            var dockedItems = this.getComponentLayout().getDockedItems('render', beforeBody);
            ...
    }
    this.getComponentLayout returns the 'body' layout which does not have the getDockedItems method.

    If you change FormPanel to Panel, everything is fine.

    I would appreciate if somebody could look into it.

    Thanks,
    Alex.

  5. #5
    Ext JS Premium Member
    Join Date
    Dec 2009
    Posts
    65
    Vote Rating
    3
    oklymenko is on a distinguished road

      0  

    Default


    I am getting the same error in 4.1.0-beta-2.

    I was able to mitigate it by using the following override (not sure if it's correct, but it worked for me):

    Code:
    Ext.override(Ext.app.PortalPanel, {
        getDockedItems: function (selector, beforeBody) {
            var layout = this.getComponentLayout();
            if (layout.getDockedItems) {
                var dockedItems = layout.getDockedItems('render', beforeBody);
                if (selector && dockedItems.length) {
                    dockedItems = Ext.ComponentQuery.query(selector, dockedItems);
                }
                return dockedItems;
            }
            else {
                return [];
            }
        } 
    });
    Do I have to report it through a separate post using the "How to report a bug" template, or is this sufficient? Just don't want to create duplicates.

    Thanks,
    Alex.

  6. #6
    Touch Premium Member
    Join Date
    Jan 2008
    Location
    Quebec, Canada
    Posts
    122
    Vote Rating
    1
    nbourdeau is on a distinguished road

      0  

    Default


    Quote Originally Posted by oklymenko View Post
    I am getting the same error in 4.1.0-beta-2.

    I was able to mitigate it by using the following override (not sure if it's correct, but it worked for me):

    Code:
    Ext.override(Ext.app.PortalPanel, {
        getDockedItems: function (selector, beforeBody) {
            var layout = this.getComponentLayout();
            if (layout.getDockedItems) {
                var dockedItems = layout.getDockedItems('render', beforeBody);
                if (selector && dockedItems.length) {
                    dockedItems = Ext.ComponentQuery.query(selector, dockedItems);
                }
                return dockedItems;
            }
            else {
                return [];
            }
        } 
    });
    Do I have to report it through a separate post using the "How to report a bug" template, or is this sufficient? Just don't want to create duplicates.

    Thanks,
    Alex.
    I have the same error in 4.1 B1 & B2 but in other contexts. Is this bug reported elsewhere ??

  7. #7
    Ext JS Premium Member
    Join Date
    Dec 2009
    Posts
    65
    Vote Rating
    3
    oklymenko is on a distinguished road

      0  

    Default


    Yes, I reported it here

Thread Participants: 2

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."