Resize table/grid depend on screen size

Here the case is to have table/grid that is automatically resize depend on row number and if the rows reach the 100% of the parent component height table/grid must stop this resizing, i check for some addons for this issue to make some workaraound but they don`t working(SizeReporter, Css-tool).
Thank you!