PDA

View Full Version : What's problems - [window - tab - form]



Perfect Lion
30 Jan 2008, 12:35 PM
Hi, People.

I usin Ext.Window for create my form, it form have a Ext.TabPanel in tab1 this Ext.form.FormPanel.

This problem in IE7 and IE6:

http://extjs.com/forum/attachment.php?attachmentid=4200&stc=1&d=1201728077

My Code:

[code]
win_form1 = App.Windows.getWindow('win_form1');
if (!win_form1) {
win_form1 = App.Windows.createWindow({
id: 'win_form1'
, title:'{/literal}{$traducao->_(novo)}{literal}'
, width: 400
, autoHeight: true
, shim:false
, border: false
, layout: 'fit'
, modal: true
, items: [
new Ext.form.FormPanel({
defaultType: 'textfield'
, id: "form1"
, url: baseUrl + "sysDyp02web/datacenter/actionProjeto"
, autoHeight: true // recupera o tamanho da altura automatico
, items: [ // atribue os items ao formul

Perfect Lion
30 Jan 2008, 1:34 PM
image result:
http://extjs.com/forum/attachment.php?attachmentid=4203&stc=1&d=1201732331
This code:


win = new Ext.Window({
title: 'teste'
, width: 300
, height: 120
, layout: 'fit'
, items: [
{
xtype: 'tabpanel'
, activeTab: 0
, items:[
{
title: 'tab1'
, autoScroll: true
//, layout: 'absolute'
, items: [
{
layout: 'form'
, defaultType: 'textfield'
, items:[
{
fieldLabel: 'teste'
}
, {
fieldLabel: 'teste'
}
, {
fieldLabel: 'teste'
}
]
}
]
}
, {
title: 'tab3'
}
]
}
]
})


Image Result:
http://extjs.com/forum/attachment.php?attachmentid=4203&stc=1&d=1201732331
This Code:


win = new Ext.Window({
title: 'teste'
, width: 300
, height: 120
, layout: 'fit'
, items: [
{
xtype: 'tabpanel'
, activeTab: 0
, items:[
{
title: 'tab1'
, autoScroll: true
, layout: 'absolute' // << this ??????????????
, items: [
{
layout: 'form'
, defaultType: 'textfield'
, items:[
{
fieldLabel: 'teste'
}
, {
fieldLabel: 'teste'
}
, {
fieldLabel: 'teste'
}
]
}
]
}
, {
title: 'tab3'
}
]
}
]
})

Perfect Lion
30 Jan 2008, 6:09 PM
*Up*