この非常にシンプルなウィンドウ拡張を作成しました。 Firefoxでは、それは必要なように見えますが、IE7では、含まれている項目がウィンドウから流れ出します。ExtJS&IE7:シンプルウィンドウでのレンダリングの問題
私はこれを修正するために何ができますか?
コード:(文書型は厳しいですが、いくつかの理由で表示されません)
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Online example</title>
<link rel="stylesheet" type="text/css" href="http://dev.sencha.com/deploy/dev/resources/css/ext-all.css" />
<script type="text/javascript" src="http://dev.sencha.com/deploy/dev/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="http://dev.sencha.com/deploy/dev/ext-all.js"></script>
</head>
<body>
<script type="text/javascript">
Ext.onReady(function(){
MyWindow = Ext.extend(Ext.Window, {
layout: 'fit',
width: 370,
height: 500,
resizable: true,
closable: true,
closeAction: 'hide',
collapsible: true,
autoScroll: true,
bodyStyle: 'padding:5px;',
title: 'Window',
initComponent: function() {
var config = {
items:
[
{
xtype: 'fieldset',
title: 'Buffer valg',
layout: 'form',
items:
[
{
xtype: 'numberfield',
fieldLabel: 'Label'
}, {
xtype: 'checkbox',
fieldLabel: 'Label',
checked: true
}
]
}
]
}
Ext.apply(this, Ext.apply(this.initialConfig, config));
// Config object has already been applied to 'this' so properties can
// be overriden here or new properties (e.g. items, tools, buttons)
// can be added, eg:
// Call parent (required)
MyWindow.superclass.initComponent.apply(this, arguments);
}
});
AWindow = new MyWindow();
AWindow.show();
});
</script>
</body>
</html>
これは動作していないようです。しかし、問題を回す:ウィンドウと内容を作成して、複数の 'fieldset'アイテムがすべて複数のアイテムを含む' container'を持つようにするにはどうしたらいいですか? (なぜ私はウィンドウをスクロールすることができないのですか?) – Chau
なぜあなたはそれが小さすぎることを保証したいですか?ユーザビリティの観点から、スクロールバーは厄介です。 'bodyStyle: 'オーバーフローを追加することはできますが、視覚的な問題を解決したい場合は:hidden'' – JamesHalsall