Fixed issue 577. The text editor now expands across the width when the diagram is disabled.
Also refactored dynamic layout functions into a new javascript file, umple_layout.js.


git-svn-id: http://umple.googlecode.com/svn/trunk@4126 6ebf9d09-8eb1-0036-9d08-68c07d1b990a