I am trying to make a full page example based on the sample 02_conf/15_header_footer.html.
With the following code snippet, I’m trying to show or hide the header that is attached to the Layout Object. My issue is that once the attached header is hidden, the Layout does not resize to fill the screen.
I was unable to find a “detachHeader”, “showHeader” or “hideHeader” methods for the Layout Object? Does anyone have a suggestions?
Thanks,
Matthew.
dhxLayout = new dhtmlXLayoutObject(document.body, “1C”);
dhxLayout.attachHeader(“myHeader”);function screenMode( myMode ) {
var myNorm1 = document.getElementById(‘myNormalButton’);
var myFull1 = document.getElementById(‘myFullButton’);
var myHeader = document.getElementById(‘myHeader’);
if ( myMode == ‘Full’ ) {
myNorm1.style.display=“block”
myFull1.style.display=“none”
myHeader.style.display=“none”
} else {
myNorm1.style.display=“none”
myFull1.style.display=“block”
myHeader.style.display=“block”
};
return true;
};