Adjust window height to browser window size

I have a modal window with header and tree in its body. How to adjust window height relative to current window browser height? For example, I want the window height to be 75% of window browser height. It also would be nice to have opportunity to set maximum height. I need this solution because on big screens my views look nice, but on laptop screens their borders go over browser borders.

try to use position option

@intregal, that’s it! Working like a charm. Thank you!