PDA

View Full Version : ignore grid width



Stephan123
9 Nov 2009, 12:50 AM
Hello !

I have build an simple vbox.
In the second vbox is a grid.
The width of the grid is 300.
But the output from the grid is mach more !


new Ext.Window({
title: 'neues Ticket',
modal: true,
width: 500,
height: 600,
renderTo: document.body,
draggable: false,
resizable: false,
shadow: false,
id: 'fenster',
layout: 'vbox',
layoutConfig: {
pack: 'start'
},
defaults: {
padding: '20 20 20 20'
},
items: [{
title: 'Angaben 1',
height: 150,
width: 750,
layout: 'form',
id: 'abschnitt1',
items: [{
xtype: 'textfield',
fieldLabel: 'Betreff *',
name: 'betreff',
id: 'betreff1',
width: 200,
msgTarget : "qtip",
qtip : "Bitte Betreff eingeben",
allowBlank : false,
tabIndex: 1
}]
},{
title: 'Angaben 2',
width: 500,
id: 'abschnitt2',
layout: 'form',
items: [{
xtype: 'grid',
id: 'tabelle',
width: 300,
columns:[{
id: 'topic',
header: "Betreff",
dataIndex: 'title',
width: 100,
sortable: true
},{
header: "Autor",
dataIndex: 'author',
width: 100,
sortable: true
},{
header: "Inhalt",
dataIndex: 'replycount',
width: 100,
align: 'right',
sortable: true
}]
}]
}]
}) // Ende FensterHow can spend a idea ?

Your sincerly

Stephan