Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by chrisz on Apr 13, 2009 10:59
open dhtmlx forum
LibCompiler doesn't include everything

I posted a question about this before: http://dhtmlx.com/docs/products/kb/index.php?s=normal&q=8923&a=14031
However I don't understand how to reply back to the response I got. It seems there is only the option to generate another new question...

Anyway, I found the problem. LibCompiler is not including the CSS for the blue/black skin choice. I am choosing "Suite Full", and checking the radio button for "dhx_black". The generated JS file seems fine, but the CSS is messed up. I can fix it by including these style sheets: "dhtmlxlayout_dhx_black.css" and "dhtmlxwindows_dhx_black.css" *in addition to* the one generated by LibCompiler: "dhtmlx.css".

I verified that elements in the "dhtmlxlayout_dhx_black.css" are definitely not in the "dhtmlx.css" file. I also verified that I wasn't accidentally generating or requesting the 'blue' skin. When I ask LibCompiler to generate files for black, and again for blue, and then compare the CSS files with DIFF... they are exactly the same.

For now I am simply including the additional CSS files.
Answer posted by Alex (support) on Apr 14, 2009 06:20

Hello,

the issue still isn't reproduced locally.

Please, check that the skin is defined in the layout constructor:

var dhxLayout = new dhtmlXLayoutObject("parentId","3L","dhx_black");

Answer posted on Apr 14, 2009 06:37
Hello,

Yes, that is what I have. Like I said, the problem is in the LibCompiler generated CSS. For instance, if I look inside "dhtmlxlayout_dhx_black.css", I see elements such as:
 - table.dhtmlxLayoutPolyContainer_dhx_black
 - td.dhtmlxLayoutSinglePoly
 - div.dhtmlxWindowMainContent

If I search for these elements in the LibCompiler generated CSS file ("dhtmlx.css"), they are not present. Thus, I have to include "dhtmlx.css" *and* I have to include "dhtmlxlayout_dhx_black.css" and "dhtmlxwindows_dhx_black.css":
<link rel="stylesheet" type="text/css" href="styles/dhtmlx.css">
<link rel="stylesheet" type="text/css" href="styles/dhtmlxlayout_dhx_black.css">
<link rel="stylesheet" type="text/css" href="styles/dhtmlxwindows_dhx_black.css">

I am attaching the LibCompiler generated css file for you too look at. Again, if I use LibCompiler and choose either the 'blue' or 'black' skin... the same exact file (attached) is generated either way.
I am running Ubuntu 8.04, Apache 2.2, and PHP 5.2.4

Thanks
Attachments (1)
dhtmlx.css84.80 Kb
Answer posted by Alex (support) on Apr 14, 2009 07:13

The layout doesn't appear with your dhtmlx.css.

But locally all works perfectly (lib Compiler is from the latest suite). Please, see attached sample with generated dhtmlx.css and dhtmlx.js for layout component. 

Attachments (1)
test.zip62.37 Kb
Answer posted by Michael on Apr 14, 2009 11:39
I had the same issue in December.  I posted this question and was able to get it resolved.  See link it may help.

http://www.dhtmlx.com/docs/products/kb/index.shtml?cat=search&page=1&q=6704&ssr=yes&s=libCompiler