fix spreadsheet bug, where resizing a the notepane was called too early.