datatable icon indicating copy to clipboard operation
datatable copied to clipboard

There is no way to define height ?

Open rmehta opened this issue 7 years ago • 1 comments

could be from parent container, or autoheight ?

rmehta avatar Feb 02 '18 07:02 rmehta

Diving a bit into this it seems the height of the .dt-scrollable element is fixed to 40vw in style.css, so 40% of vertical window. It doesn't make any sense to base the height of an element on the viewport width.

My solution for for example the General Ledger in ERPnext is to set

.dt-scrollable {
    height: calc(100vh - 450px);

This is still not ideal as the 450px might not be the same for every situation but at least for my General Ledger in ERPnext this works.

DavidMenting avatar Nov 10 '23 10:11 DavidMenting