Improved resizing/maximizing behaviour when multiple files are open