Attach Form

Hi,

I am testing the new dhtmlxform.
If i attach the form to one layout cell with comand “var dhxForm = dhxLayout.cells(“b”).attachForm();”
it looks good like in the layout.png example.

But if the same form is attached to one Tabbar cell with the command “var dhxForm = tabbar.cells(“a1”).attachForm();”

it looks weird like in the tabbar.png example.

What i am doing Wrong ???

Thanks




Hi,

attached form inherits skin from the parent component. The skin of your tabbar is “default” and there is such a skin in form. Try to define skin before form is attached:

dhtmlx.skin = “dhx_skyblue”;
var dhxForm = dhxLayout.cells(“b”).attachForm();