jbowman
24 Oct 2006, 5:04 PM
Ok, I have this code...
Layout = {
init: function() {
var layout = new YAHOO.ext.BorderLayout(document.body, {
north: {
split:false,
initialSize: 35
},
south: {
split:false,
initialSize: 20,
},
center: {
autoScroll: true
}
});
layout.beginUpdate();
layout.add('north', new YAHOO.ext.ContentPanel('header', {fitToFrame:true}));
layout.add('south', new YAHOO.ext.ContentPanel('footer', {fitToFrame:true}));
layout.add('center', new YAHOO.ext.ContentPanel('content', {title: "body", fitToFrame:false}));
layout.endUpdate();
Any content I put into the div "content" is inheriting a setting of 100% width from somewhere. Is this the expected behaviour?
Layout = {
init: function() {
var layout = new YAHOO.ext.BorderLayout(document.body, {
north: {
split:false,
initialSize: 35
},
south: {
split:false,
initialSize: 20,
},
center: {
autoScroll: true
}
});
layout.beginUpdate();
layout.add('north', new YAHOO.ext.ContentPanel('header', {fitToFrame:true}));
layout.add('south', new YAHOO.ext.ContentPanel('footer', {fitToFrame:true}));
layout.add('center', new YAHOO.ext.ContentPanel('content', {title: "body", fitToFrame:false}));
layout.endUpdate();
Any content I put into the div "content" is inheriting a setting of 100% width from somewhere. Is this the expected behaviour?