Resizable: containment plugin restricts resizing within container

Fixes #7018
Fixes #9107
Closes gh-1122
Resizable: remove redundant comments and whitespace