アプリケーション全体をレンダリングしたいDiv-containerが1つあります。アプリケーションは、Div幅全体に記入する必要があります。
次の両方のDivを試しましたが、それでもDiv-containerは100%ではなく、コンテンツがないかのように幅もありません。なにが問題ですか?
<div id="stuff"></div>
と
<div style="width: 100%;" id="stuff"></div>
私のExtJSアプリ:
                    launch: function() {
                    var div = Ext.Element.get('stuff');
                    Ext.create('Ext.panel.Panel', {
                        renderTo: div,
                        width: "100%",
                        height: 500,
                        title: 'Container Panel',
                        layout: 'border',
                        items: [
                            {
                                xtype: 'panel',
                                title: 'Child Panel 1',
                                height: '80%',
                                width: '100%'
                            },
                            {
                                xtype: 'panel',
                                title: 'Child Panel 2',
                                html: 'textextetxtext',
                                height: '80%',
                                width: '100%'
                            }
                        ]
                    });
                }