grid in form in tab

I have a tab with a form.
This form has a item “template” that contains a layer:

In this layer, I charge a grid.

When I resized the window, the tab and the form is set correctly, but the grid no.

I want the grid is set to 100% width of the form. How do I do?

Did you try this?

<div id="box" style="height:200px; width:100%"></div>

not work.
also makes a strange effect: It is always a bit wider than the 100%

Unfortunately the issue cannot be reproduced locally.

Please, provide with any kind of sample of your code or with a complete demo, where the problem can be reconstructed.
Here you can find a tutorial about creating a complete demo:
docs.dhtmlx.com/doku.php?id=othe … leted_demo