使用する高さの引数に関係なく、ウィンドウの高さは約 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();
},