djfloetic
13 Jul 2007, 10:04 AM
I've been trying to simply have a BorderLayout from a div.
I've been success with Firefox but not in Internet Explorer 6/7.
Here's the js file:
Ext.onReady(function() {
BCDBLayout = function(){
return {
init : function(){
var layout = new Ext.BorderLayout(Ext.get('class-container'), {
east: {
split: false,
initialSize: 265,
autoScroll: false,
titlebar: true,
collapsible: false,
minSize: 100,
maxSize: 1000
},
center: {
split: false,
initialSize: 735,
titlebar: true,
collapsible: false,
minSize: 400,
maxSize: 1000
}
});
layout.beginUpdate();
layout.add('center', new Ext.ContentPanel('bcdbview-main-class', {title: 'BCDB', fitToFrame:true, closable:false}));
layout.add('east', new Ext.ContentPanel('bcdbview-details-class', {title: 'Details', fitToFrame:true}));
layout.endUpdate();
}
};
}();
Ext.EventManager.onDocumentReady(BCDBLayout.init, BCDBLayout, true);
I'm attaching the border to a div I've created:
<script type="text/javascript" src="./includes/javascript/classDBView.js"></script>
<div id="class-container" style="border:0px none;overflow:overflow;width:100%;height:100%">
<div id="bcdbview-main-class" style="border:0px none;overflow:overflow;width:100%;height:100%">
<div id="bcdbview-grid" style="border:0px none;overflow:overflow;width:100%;height:100%"></div>
</div>
<div id="bcdbview-details-class"">
<table cellspacing="0" id="details-table" width="265">
//... stuff
</table>
<div id="details-form"></div>
</div>
</div>
In FireFox everything is okay with no reported errors in FireBug. In IE, it doesn't show anything. Although I can see it is trying to render the grid but it doesn't show.
If I replace it with "document.body" instead of "Ext.get('class-container')" it works, but I don't want that since it will take over the body and create the layout over anything below the Body which is not desirable.
Any thoughts?
I've been success with Firefox but not in Internet Explorer 6/7.
Here's the js file:
Ext.onReady(function() {
BCDBLayout = function(){
return {
init : function(){
var layout = new Ext.BorderLayout(Ext.get('class-container'), {
east: {
split: false,
initialSize: 265,
autoScroll: false,
titlebar: true,
collapsible: false,
minSize: 100,
maxSize: 1000
},
center: {
split: false,
initialSize: 735,
titlebar: true,
collapsible: false,
minSize: 400,
maxSize: 1000
}
});
layout.beginUpdate();
layout.add('center', new Ext.ContentPanel('bcdbview-main-class', {title: 'BCDB', fitToFrame:true, closable:false}));
layout.add('east', new Ext.ContentPanel('bcdbview-details-class', {title: 'Details', fitToFrame:true}));
layout.endUpdate();
}
};
}();
Ext.EventManager.onDocumentReady(BCDBLayout.init, BCDBLayout, true);
I'm attaching the border to a div I've created:
<script type="text/javascript" src="./includes/javascript/classDBView.js"></script>
<div id="class-container" style="border:0px none;overflow:overflow;width:100%;height:100%">
<div id="bcdbview-main-class" style="border:0px none;overflow:overflow;width:100%;height:100%">
<div id="bcdbview-grid" style="border:0px none;overflow:overflow;width:100%;height:100%"></div>
</div>
<div id="bcdbview-details-class"">
<table cellspacing="0" id="details-table" width="265">
//... stuff
</table>
<div id="details-form"></div>
</div>
</div>
In FireFox everything is okay with no reported errors in FireBug. In IE, it doesn't show anything. Although I can see it is trying to render the grid but it doesn't show.
If I replace it with "document.body" instead of "Ext.get('class-container')" it works, but I don't want that since it will take over the body and create the layout over anything below the Body which is not desirable.
Any thoughts?