1

使用する高さの引数に関係なく、ウィンドウの高さは約 250px で安定しています。console.log ステートメントは、show に 600 を渡すと 600 を出力します。たとえばgetIFrameWindow().show({height: 600})、高さの引数が正しく渡され、受信されていることはわかっていますが、ウィンドウは正しい高さでレンダリングされません。

getIframeWindow : function () {
    return {
        show :function(args) {
            args=args||{};
            win = new Ext.Window({ 
                width    :args.width||200,
                height   :args.height||200,
                items    :[{
                    border      : false,
                    xtype       : 'iframepanel',
                    defaultSrc  : args.src||'_blank.htm'
                }]
            });
            console.log(win.height);
            win.show();
        },
4

1 に答える 1

1

try this :

            width    :args.width * 1.0 ||200,
            height   :args.height * 1.0 ||200,

args.width and args.height will become numbers

于 2009-02-27T09:52:02.760 に答える