ExtJS & IE7: Rendering Probleme mit einfachen Fenster

Erstellt habe ich dieses sehr einfache Fenster Erweiterung. Im Firefox sieht es aus wie es soll, aber im IE7, die enthaltenen Elemente fließen aus dem Fenster.

ExtJS & IE7: Rendering Probleme mit einfachen Fenster

Was kann ich tun um dies zu beheben?

Code: (Doctype ist streng, aber nicht die Anzeige aus irgendeinem Grund)

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Online example</title>
    <link rel="stylesheet" type="text/css" href="http://dev.sencha.com/deploy/dev/resources/css/ext-all.css" />

    <script type="text/javascript" src="http://dev.sencha.com/deploy/dev/adapter/ext/ext-base.js"></script>     

    <script type="text/javascript" src="http://dev.sencha.com/deploy/dev/ext-all.js"></script>    

</head>
<body>

<script type="text/javascript">

Ext.onReady(function(){

    MyWindow = Ext.extend(Ext.Window, {
        layout: 'fit',
        width: 370,
        height: 500,
        resizable: true,
        closable: true,
        closeAction: 'hide',
        collapsible: true,
        autoScroll: true,
        bodyStyle: 'padding:5px;',
        title: 'Window',

        initComponent: function () {

            var config = {
                items:
                [
                    {
                        xtype: 'fieldset',
                        title: 'Buffer valg',
                        layout: 'form',
                        items:
                        [
                            {
                                xtype: 'numberfield',                                                                                                       
                                fieldLabel: 'Label'                                    
                            }, {
                                xtype: 'checkbox',
                                fieldLabel: 'Label',
                                checked: true                                    
                            }
                        ]
                    }
                ]
            }

            Ext.apply(this, Ext.apply(this.initialConfig, config));

            //Config object has already been applied to 'this' so properties can 
            //be overriden here or new properties (e.g. items, tools, buttons) 
            //can be added, eg:

            //Call parent (required)
            MyWindow.superclass.initComponent.apply(this, arguments);
        }   
    });

    AWindow = new MyWindow();
    AWindow.show();
});

</script>

</body>
</html>
InformationsquelleAutor Chau | 2011-02-07
Schreibe einen Kommentar