make edit area fit on screen+priority