Added checks when editing window and sb size so that they are kept
consistent.

7 files changed