が、私はこのようなウィンドウのグリッドを作成しています:ウィンドウ迷惑な水平スクロールバーでExtJSの4 gridpanel
このようなウィンドウ生成しているExt.create('Ext.data.Store', {
storeId:'simpsonsStore',
fields:['name', 'email',],
data:{'items':[
{ 'name': 'Lisa', "email":"[email protected]" },
{ 'name': 'Bart', "email":"[email protected]" },
{ 'name': 'Homer', "email":"[email protected]" },
{ 'name': 'Marge', "email":"[email protected]" }
]},
proxy: {
type: 'memory',
reader: {
type: 'json',
root: 'items'
}
}
});
Ext.create("Ext.window.Window", {
title: 'BlaBla',
closable: true,
modal: true,
width: 800,
height: 460,
layout: 'fit',
items: [
{
xtype: 'gridpanel',
autoScroll: true,
store: Ext.data.StoreManager.lookup('simpsonsStore'),
title: 'Choose which features you would like to use to create parts.',
// height: 300,
columns: {
items: [
{
header: 'Name',
tooltip: 'Name',
dataIndex: 'name',
flex: 1
},
{
header: 'Email',
tooltip: 'Email',
dataIndex: 'email',
flex: 1
}
]
}
},
]
}).show();
をしかし、gridpanelは迷惑を持っています水平スクロールバーです。これは、列が収まるため必要ではありません。
なぜスクロールバーが作成され、代わりに使用する必要がありますか?
私はフィドルでコードを実行すると、スクロールバーが表示されません。 @UDID:幅を変更しなくても、うまく見えます。 – Srikanth
@Srikanthかもしれませんが、私がフィドルを作成するとスクロールバーが表示されるので、これはウィンドウ幅のために起こると仮定します。ウィンドウが実際のグリッドよりも小さい場合、これは一般的に起こります。 – UDID