Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Nov 2012
    Posts
    12
    Answers
    1
    Vote Rating
    0
    RMSX is on a distinguished road

      0  

    Default Unanswered: Resetting scrollable height of an Ext.Container after removing components

    Unanswered: Resetting scrollable height of an Ext.Container after removing components


    I have an Ext.Container in which I dynamically show a varying number of components which each have a variable height.

    I noticed that when I remove items from the container, the scrollable height does not decrease to match the smaller number of items, eg, I can scroll below the remaining items in the container and see only blank web page.

    Is there a function or something that I need to call to reset this?

  2. #2
    bricemason's Avatar
    Join Date
    Jan 2008
    Location
    Upstate NY
    Posts
    280
    Answers
    49
    Vote Rating
    44
    bricemason has a spectacular aura about bricemason has a spectacular aura about bricemason has a spectacular aura about

      0  

    Default


    I came up with this example in an attempt to duplicate. I use the 'add' button to add a bunch of panels to the container, then remove. Once I've removed enough to remove scrollability, it works as expected for me.

    If this works as expected, please post the code which demonstrates how you're adding/removing your components.

    Code:
    Ext.define('Scroll.view.Main', {
        extend: 'Ext.tab.Panel',
        xtype: 'main',
        requires: [
            'Ext.Button'
        ],
        config: {
            tabBarPosition: 'bottom',
    
    
            items: [
                {
                    title: 'Welcome',
                    iconCls: 'home',
                    xtype: 'container',
    
    
                    styleHtmlContent: true,
                    scrollable: true,
    
    
                    items: [
                        {
                            xtype: 'button',
                            text: 'Add Component',
                            docked: 'bottom',
                            handler: function(btn) {
                                var c = btn.up('container');
                                c.add({
                                    html: new Date()
                                });
                            }
                        },
                        {
                            xtype: 'button',
                            text: 'Remove Component',
                            docked: 'bottom',
                            handler: function(btn) {
                                var c = btn.up('container');
                                var items = c.getInnerItems();
    
    
                                if(items.length > 0) {
                                    c.remove(items[0], true);
                                }
                            }
                        }
                    ]
                }
            ]
        }
    });
    Brice
    Brice Mason
    Front End Developer
    Modus Create

    @bricemason
    bricemason.com

    Sencha Touch Screencasts
    Vimeo - Sencha Touch Channel

    Github Projects:
    Sencha Cordova Builder enables the automatic creation, building, and running of PhoneGap (Cordova) projects with Sencha Touch.

    Am I Sencha Touch Ready? checks your system to determine what you need to do to start Sencha Touch development. If you're having trouble getting up and running, try this out.

    Sencha Tools Bridge allows Sencha SDK Tools to co-exist with Sencha Cmd on the same system.

Thread Participants: 1