Categories | Question details Back To List | ||||||||
layout throws error if cell collapse by clicking header icon after .collapse() used during initialization of neighboring cell Hey Guys, still working on confirm earlier fixes you have provided. I will let you know soon how those work. ITMT, here is another issue: Behavior: The attached layout configuration initializes without error, but then throws an exception if the main layout cell "a" is collapsed by clicking on the double << icon in the header. This behavior goes away if I comment out the last line of js code: mainLayout.cells("c").collapse(); Hope you have a fix. And much appreciate your continued great service. Max ---- begin code sample ---- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Explore OONdada Compliance and Audit Accelerator</title> <link rel="STYLESHEET" type="text/css" href="/ondemand.css"> <link rel="STYLESHEET" type="text/css" href="codebase/dhtmlx/dhtmlxwindows.css"> <link rel="STYLESHEET" type="text/css" href="codebase/dhtmlx/dhtmlxlayout.css"> <link rel="STYLESHEET" type="text/css" href="codebase/dhtmlx/skins/dhtmlxwindows_dhx_blue.css"> <link rel="STYLESHEET" type="text/css" href="codebase/dhtmlx/skins/dhtmlxlayout_dhx_blue.css"> <script src="codebase/dhtmlx/dhtmlxcommon.js" type="text/javascript"></script> <!-- v.2.1 build 90226 --> <script src="codebase/dhtmlx/dhtmlxwindows.js" type="text/javascript"></script> <!-- v.2.0 build 81107 --> <script src="codebase/dhtmlx/dhtmlxlayout.js" type="text/javascript"></script> <!-- v.2.0 build 81107 --> </head> <body> <div id="container"> <div id="parentId" style="position:absolute; width:968px; height:480px;"></div> </div> <script> // main layout of three panels - left = navigatation, upper right = splash/guide screens, lower right = workzone for grid and tree mainLayout = new dhtmlXLayoutObject("parentId", "3L", "dhx_blue"); mainLayout.cells("a").setWidth(280); mainLayout.cells("a").setText("Navigation"); mainLayout.cells("b").setHeight(180); mainLayout.cells("b").hideHeader(); mainLayout.cells("c").hideHeader(); // work zone layout within lower right panel of main layout - left panel for grid, right panel for tree workZoneLayout = new dhtmlXLayoutObject(mainLayout.cells("c"), "2U", "dhx_blue"); workZoneLayout.cells("a").hideHeader(); workZoneLayout.cells("b").hideHeader(); mainLayout.cells("c").collapse(); // do not collapse prior to attaching workZoneLayout </script> </body> </html> Answer posted by Alex (support) on Jun 17, 2009 05:12 Hello, please, check attached sample - the issue is not reproduced Attachments (1)
|