Hybrid View

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    10
    Vote Rating
    0
    larryan is on a distinguished road

      0  

    Default Unanswered: autoScroll bar

    Unanswered: autoScroll bar


    Hi,
    I have a form setting autoScroll to true. I added multi grids into the form dynamically. When the form shows up, I clicked on the form (actually, on any line in the grids that's in the view currently) for the first time (not second time), the form scroll down to a certain distance based on how big the content in the form. I don't know why the form scrolled. This is happening only when I for the first time click on the form. I think the form shouldn't scroll if I don't scroll it.
    How can I stop this unwanted scrolling? any idea will appreciate.
    Thanks
    Larry

  2. #2
    Sencha - Community Support Team friend's Avatar
    Join Date
    Apr 2011
    Posts
    895
    Answers
    106
    Vote Rating
    27
    friend has a spectacular aura about friend has a spectacular aura about

      0  

    Default


    This sounds like an issue with the parent container and it's layout/sizing policy.

  3. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    10
    Vote Rating
    0
    larryan is on a distinguished road

      0  

    Default autoScroll

    autoScroll


    AM
    Friend, Thank you for your answer.
    Below is my code. Is any thing wrong for my layout setting? Please advise.

    Ext.define('LP.view.MyPanel', {
    extend: 'Ext.panel.Panel',
    alias: 'widget.mypanel',


    layout: 'border',
    bodyPadding: 10,
    initComponent: function () {
    var me = this;
    Ext.apply(this, {
    items: [
    {
    xtype: 'container',
    layout: 'hbox',
    region: 'south',
    cls: 'button-container',
    items: [{
    xtype: 'button',
    text: LP.localStrings.save,
    itemId: 'saveButton',
    disabled: true,
    margin: '0 10 0 0'
    }, {
    xtype: 'button',
    text: LP.localStrings.cancel,
    disabled: true,
    itemId: 'cancelButton'
    }]
    },
    {
    xtype: 'baseform',
    region: 'center',
    autoScroll: true,
    border: 0,
    items: [
    {
    }
    ]
    }
    ]
    });
    this.callParent(arguments);
    },

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar