2

我有一个从 Ext.form.Panel 扩展的简单视图,并且有三个项目。第一项是工具栏,属性停靠:'top',第二项是字段集,第三项是工具栏,但它停靠在底部。这个视图看起来不错,但是当我使用 Google Chrome 在 iPhone 4 或 iPhone 5(均使用 iOS 6)上打开它时,第三项就消失了。

同一个人可以解释为什么停靠在底部的工具栏仅在 iPhone 上的 Google Chrome 上不显示?

Ext.define("TestApp.view.Test", {
    extend: "Ext.form.Panel",
    requires: "Ext.form.FieldSet",
    alias: "widget.testview",
    config: {
        scrollable: 'vertical',
        items: [
            {
                xtype: "toolbar",
                docked: "top",
                title: "Title",
                items: [
                    {
                        xtype: "button",
                        ui: "back",
                        text: "back",
                        itemId: "backBtn"
                    }
                ]
            },
            { xtype: "fieldset",
                items: [
                    {
                        xtype: 'textfield',
                        name: 'title',
                        label: 'Title'
                    },
                    {
                        xtype: 'textareafield',
                        name: 'description',
                        label: 'Description'
                    }
                ]
            },
            {
                xtype: "toolbar",
                docked: "bottom",
                items: [
                    {
                        xtype: "button",
                        iconCls: "trash",
                        iconMask: true,
                        itemId: "deleteBtn"
                    }
                ]
            }
        ]
    }
});
4

1 回答 1

2

嗯,我有一个类似的问题,可能和你的一样。在 chrome 上,导航栏(或他们所说的“全能栏”)向下推应用程序空间,底部被切断。

如果进入全屏模式取消隐藏底栏,您就会知道这是同样的问题。全屏通常通过向上滚动在 chrome 中实现。但是,如果停靠在顶部的项目不可滚动,则不能从那里隐藏它​​。尝试将其隐藏在加载屏幕上。更多信息,谷歌搜索“ios chrome 全屏”或“ios chrome 隐藏导航栏”。还有一些方法可以在您的应用程序中执行此操作。

于 2013-08-19T15:58:40.030 回答