avoid problems shrinking past size border-size of a pane, fixes #5903 !strict