Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
ExtJS 4:当约束到边界布局中心区域和西部区域时,窗口最大化问题_Extjs - Fatal编程技术网

ExtJS 4:当约束到边界布局中心区域和西部区域时,窗口最大化问题

ExtJS 4:当约束到边界布局中心区域和西部区域时,窗口最大化问题,extjs,Extjs,我在这个问题上花了很多时间。我的样本中有两个主要问题 1) 当我最大化窗口时,右边缘和下边缘会随着西区的宽度和南区的高度而条纹化 2) 如果我将constraint:true和renderTo:regCenter设置为'regCenter',则窗口在centerRegion的左侧和顶部区域不可停靠 ExtJS中是否存在bug或我的编码错误 <html> <head> <meta http-equiv="Content-Type" c

我在这个问题上花了很多时间。我的样本中有两个主要问题

1) 当我最大化窗口时,右边缘和下边缘会随着西区的宽度和南区的高度而条纹化

2) 如果我将constraint:true和renderTo:regCenter设置为'regCenter',则窗口在centerRegion的左侧和顶部区域不可停靠

ExtJS中是否存在bug或我的编码错误

 <html>

      <head>

        <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
        <link rel="stylesheet" type="text/css"
          href="lib/extjs/resources/css/ext-all.css">
        <script type="text/javascript" src="lib/extjs/ext-all.js"></script>

        <script>

          Ext.onReady(function() {

            Ext.create("Ext.container.Viewport",
              { layout : "border",
                items: [
                  { width : 160, region : "west", split:true,collapsible: true, items: [ ] },
                  { height : 60, region : "north", items: [ ] },
                  { id : "regCenter", region : "center" }
                ]
              }
            );

            Ext.create("Ext.window.Window",
              { maximizable : true, width : 350, height : 440,
                constrainHeader : true, constrainTo : "regCenter",
                dockedItems : [
                  { xtype : "toolbar", dock : "bottom",
                    items : [ { text : "etc" } ]
                  }
                ],
                items : [ ]
              }
            ).show();

          });

        </script>

      </head>

      <body></body>

    </html>

Ext.onReady(函数(){
Ext.create(“Ext.container.Viewport”,
{布局:“边界”,
项目:[
{宽度:160,区域:“西”,分割:真,可折叠:真,项目:[]},
{高度:60,地区:“北部”,项目:[]},
{id:“regCenter”,region:“center”}
]
}
);
Ext.create(“Ext.window.window”,
{最大化:真,宽度:350,高度:440,
constraintHeader:true,constrainTo:“regCenter”,
摘要:[
{xtype:“工具栏”,dock:“底部”,
项目:[{文本:“etc”}]
}
],
项目:[]
}
).show();
});

在中心区域渲染后创建窗口有效,在此处拨动:

在中心区域渲染后创建窗口有效,在此处拨动:

如果窗口是
约束的
ed,逻辑要求,在渲染窗口之前必须渲染约束组件如果窗口是
约束的
ed,逻辑要求,在渲染窗口之前必须渲染约束组件