2022年8月10日 星期三

V120402 - MD畫面 - 調整Master高度 - 重新顯示畫面

目的: 調整 Master-Detail 高度, 並重新顯示畫面

處理說明: 1>設定 Master 高度( var Detail = Ext.getCmp("Detail");     Detail.flex = 2; )

                  2>重新顯示畫面 - TMMDViewEdit.doLayout(); 



TMMDViewEdit.on("resize", function (me, width, height, eOpts) {

        //顯示高度 - Detail = MasterGrid+Query

        var Detail = Ext.getCmp("Detail");

        Detail.flex = 2;  // tab_D.flex=1; --> Master: tab_D=2:1;

        console.log("Detail1", Detail);

        tab_D = Ext.getCmp('tab_D');

        console.log("2 TMMDViewEdit: ", TMMDViewEdit);

        console.log("1 tab_D.getHeight(): ", tab_D.getHeight());

        //.doLayout() : Manually force this container's layout to be recalculated.

        TMMDViewEdit.doLayout();  //Container.重新計算 layout

    });

沒有留言:

張貼留言