PDA

View Full Version : [2.0b1][CLOSED] xhtml - wrong header - FormPanel nested in Window



fpauser
15 Oct 2007, 4:04 AM
Hello,

i create a Window and a FormPanel as follows:



// FORMPANEL
authorForm = new Ext.FormPanel({
id: 'change-author-form',
url: 'author-change.php',
method: 'POST',
frame: true,
//defaults: {border: false},
labelWidth: 70,
bodyStyle:'padding:5px 5px 0; color: #000',
items: [{
layout: 'column',
items: [{
layout: 'form',
columnWidth: 0.5,
items: [
new Ext.form.TextField({fieldLabel: 'Vorname', name: 'firstname'}),
new Ext.form.TextField({fieldLabel: 'Nachname', name: 'lastname'})
]
},{
layout: 'form',
columnWidth: 0.5,
items: [
new Ext.form.TextField({fieldLabel: 'Vorname', name: 'firstname_'}),
new Ext.form.TextField({fieldLabel: 'Nachname', name: 'lastname_'})
]
}]
},{
layout: 'form',
items: [
new Ext.form.TextField({fieldLabel: 'Vorname', name: 'test'})
]
}]
});

// WINDOW
formsWindow = new Ext.Window({
title: 'Autor bearbeiten',
closeAction: 'hide',
resizable: false,
border: false,
width: 500,
buttonAlign: 'right',
buttons: [
{text: 'CANCEL', id: 'cancel-button', handler: winhandler},
{text: 'OK', type: 'submit', id: 'save-button', handler: winhandler}
]
});
and the "show"-button including what it does when clicked:


buttonShow = new Ext.Button({
renderTo: 'show-window',
text: 'SHOW',
handler: function() {
formsWindow.add(authorForm);
authorForm.getForm().setValues({
firstname: 'FIRSTNAME@' + (new Date()).getMilliseconds(),
lastname: 'LASTNAME@' + (new Date()).getMilliseconds()
});
authorForm.show();
formsWindow.show();
}
});
DOCTYPE: "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">"

[firefox, 2.0.6, ubuntu gutsy]
nearly everything seems ok - only one minor "display-error" with formpanel: the frame is'nt displayed on top, at bottom it looks ok, but on top the rounded corners are missing.

[ie7, xp]
ie display an empty header for the formpanel; header: false etc. is ignored

removing the doctype (quirks-mode...) gives the same output in ie as in ff, problem is, the doctype cannot be changed from xhtm lto html.

jack.slocum
15 Oct 2007, 12:11 PM
That's not a supported doc type. We have no problems including patches to make Ext work in XHTML and in fact, a lot of people are using Ext with XHTML without issue. If you have a patch for the issue, we can take a look at it including it in the main code, but we can't debug XHTML issues.