SWC-1381: calculate the editor height based on the browser window height