Fixed bug #4 Fix the resizing of the main svg window