Improving bounding on resize

  * behaviour on bounds is greatly improved
  * size bounds can now be set and used at runtime