Resizes the editor to fit the viewport height, subtracting 500px. Handles window resizing.
These are all versions of this script. Show only the versions where the code changed.