Try this for the adjustLayout function. Is there any more code that uses X?
Code:
function adjustLayout()
{
// inner elements
var ct = cbeGetElementById("contenttest").cbe;
var lt = cbeGetElementById("leftcoltest").cbe;
var rt = cbeGetElementById("rightcoltest").cbe;
var con = cbeGetElementById("container").cbe;
// wrapper elements
var c = cbeGetElementById("content").cbe;
var l = cbeGetElementById("leftcol").cbe;
var r = cbeGetElementById("rightcol").cbe;
var f = cbeGetElementById("footer").cbe;
// get max height
var maxHeight = Math.max(ct.height(), Math.max(lt.height(), rt.height()));
// set column heights
c.height(maxHeight);
l.height(maxHeight);
r.height(maxHeight);
// setup footer
f.width(con.width());
f.moveTo(0, maxHeight);
f.zIndex(10);
f.show();
}
Bookmarks