Fix growing/shrinking of minecraft window.