Datatable sample question

In the datatable sample (JS), the width of the container (that is holding the datatable) is set to
calc(100% - 40px)
The 40px is the height of the header on the form. But can you explain what the rest of this does?

Here’s a blog post which may help:
https://blog.nsbasic.com/2015/10/using-calculations-in-project-property-bounds/

100% is the full width of the screen. Subtracting 40px allows for a 20px border on each side.

1 Like