问题如图

解决方案 »

  1.   

    这是一个例子htmleditor随改变窗体大小自动适应Ext.onReady(function() {
        var win = new Ext.Window({
            title:"主窗体",
            width:410,
            height:200,
            border:false,
            constrain: true,
            resizable: true,
            minimizable: true,
            maximizable: true,
            layout:"fit",
            items:[
                 {
                      xtype:"form",
                      items:{
                         xtype:"htmleditor",name:"html",fieldLabel:"",hideLabel:true,anchor:"100% 100%"
                      }
                 }
            ]
        });
        
        win.show();});
      

  2.   

    不好意思图片没有插上,如下
    二楼的兄弟给的例子恰好是我想要的,谢谢
    就是用fit layout