首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >IE上不显示扩展网格PagingToolbar

IE上不显示扩展网格PagingToolbar
EN

Stack Overflow用户
提问于 2013-08-17 04:14:25
回答 1查看 183关注 0票数 0

我有如下的视窗。panel2有一个带有PagingToolbar的网格。它在IE中不显示,在FF中显示很少。如果我没有北区,它工作得很好。可能的原因是什么?

代码语言:javascript
复制
Ext.create('Ext.Viewport', {
    layout: 'border',
    border : 0,
    items: [
         {
            region: 'north',
            html : 'Some html'
         },
            { region: 'center',
            layout:'fit',
            split : true,
            items : [panel1, panel2]
         }
    ]
    });

这里有一个类似的例子:http://jsfiddle.net/edgMV/20/按钮没有出现。

EN

回答 1

Stack Overflow用户

发布于 2013-08-27 16:14:22

我在看你的小提琴,但是有几处地方不对劲。

  • CSS看起来像是一个不完整的海王星样式表
  • 执行以下操作:items: resultsPanel在您的区域面板中,您正在该面板内创建一个新面板
  • 您在元素上设置了错误的配置,我的建议是查看ExtJS documentation,它列出了所有有效的配置选项

您可能想要查看

现在,对于布局,我不知道您到底想要什么,但这可能很接近:http://jsfiddle.net/laurenzonneveld/kVUEU/4/

代码语言:javascript
复制
var navigate = function (panel, direction) {
    var layout = panel.getLayout();
    layout[direction]();
    Ext.getCmp('move-prev').setDisabled(!layout.getPrev());
    Ext.getCmp('move-next').setDisabled(!layout.getNext());
};

Ext.define('App.view.RequestPanel', {
    extend: 'Ext.panel.Panel',
    alias: 'widget.requestpanel',

    title: 'Request Panel',
    items: [{
        html: 'Sample Result'
    }],
    bbar: [{
        xtype: 'button',
        text: 'Search'
    }, {
        xtype: 'button',
        text: 'Reset'
    }]
});

Ext.define('App.view.ResultPanel', {
    extend: 'Ext.panel.Panel',
    alias: 'widget.resultpanel',

    title: 'Result Panel',
    layout: 'card',

    items: [{
        xtype: 'panel', // Standard panel, but this could be another super complex panel
        html: 'Sample Result 1'
    }, {
        // Defaults to xtype: 'panel', if no xtype is specified
        html: 'Sample Result 2'
    }, {
        // Defaults to xtype: 'panel', if no xtype is specified
        html: 'Sample Result 3'
    }, {
        // Defaults to xtype: 'panel', if no xtype is specified
        html: 'Sample Result 4'
    }],
    bbar: [{
        xtype: 'button',
        text: 'Previous',
        handler: function (btn) {
            navigate(btn.up('panel'), 'prev');
        }

    }, {
        xtype: 'button',
        text: 'Next',
        handler: function (btn) {
            navigate(btn.up('panel'), 'next');
        }
    }]
});

Ext.create('Ext.container.Viewport', {
    layout: 'border',
    items: [{
        region: 'north',
        html: '<h1 class="x-panel-header">Sencha</h1>',
        border: false
    }, {
        xtype: 'requestpanel', // Your super complex panel
        region: 'center', // Context specific properties for the panel
        layout: 'fit', // Context specific properties for the panel
        flex: 1 // Context specific properties for the panel
    }, {
        region: 'south', // Your super complex panel
        xtype: 'resultpanel', // Context specific properties for the panel
        flex: 1, // Context specific properties for the panel
        collapsible: true, // Context specific properties for the panel
        split: true
    }]
});

编辑:使用Ext.define更新的Ext.define和代码示例

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/18281454

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档