0

我有一个应用程序,其中 UI 组件被动态添加到 formField。由于放置在屏幕上的 UI 控件是根据服务器响应在运行时决定的,因此有时屏幕会被多个组件填满。添加屏幕元素后,我需要滚动屏幕以选择位于屏幕末尾的字段。但是当我滚动表单时会反弹,但滚动并没有按预期的方式发生。现在我无法选择放置在表单末尾的 UI 控件。

屏幕有 3 个组件,标题栏、按钮 Dock 栏和一个表单域。这是我用于表单字段的代码

    var formBase = new Ext.form.FormPanel({
                scroll: 'vertical',
                xtype: 'form',
                ui: 'round',
// i have added the items and it shows on UI, As things are dynamic i cant place it here
                items: [{}]; 

    });

帮我解决同样的问题。

4

3 回答 3

2

试试这个应该可以。

 Ext.apply(this, {
            scroll: 'vertical',
            pinHeaders: true,
            dockedItems : [{}],
            items : []
        });
       MyApp.views.MyScreenScreen.superclass.initComponent.call(this);
    },
于 2011-11-14T06:45:00.087 回答
0

它的发生是因为表格高度。将height属性添加到传递给FormPanel. 像这样的东西:

height: Ext.Viewport.getWindowHeight()-(the height of other compenents like toolbar)

这方面的例子是:

height: Ext.Viewport.getWindowHeight()-50
于 2014-08-28T13:14:28.430 回答
-1

添加height具有某些值的配置可能会解决问题。

于 2011-11-11T16:54:37.273 回答