0

这是我第一次涉足修复用 extJS 编写的问题。我整天都在寻找答案,尽管我学到了很多关于 extJS 的知识,但我找不到我的问题的答案。我正在处理布局:边框,我想为我的西部地区设置一个最小高度。我知道可以为南北设置特定的高度,但我需要我的其他区域具有更大的高度,以便可以向上或向下滚动整个页面。我试图修复的代码是一个相当大的应用程序,但处理视口的部分如下。我非常感谢您可能获得的任何帮助或提示。

var panel = new Ext.Viewport({
            id: 'viewport',
            cls: 'theme2',
            scope: this,
            title: 'Wedding Planner',
            layout: 'border',
            monitorResize: true,
            defaults: {
              collapsible: true,
              split: true
            },
            items: [{
                region: 'north',
                xtype: 'panel',
                bodyStyle: 'background: transparent;',
                collapsible: false,
                collapsed: false,
                border:false,  
                split: false,    
                margins: '0 0 0 0',
                style: 'z-index: -1000',
                height: Ext.get('header').getHeight(),
                footer: true
            },this.appTabs,{
                region:'west',
                width: 330,
                collapsible: false,
                id: 'west-container',
                layout: 'fit',
                cls: 'mw-background',

                margins: '0 0 5 5',
                items: [
                    this.weddingPlan
                ]      
            }]

        });
4

1 回答 1

0

使用minHeight配置来解决您的问题。

于 2013-10-29T05:39:06.103 回答