Added checking of minimal width when adjusting width of the InnerWindow to match bounds of the parent so the title does not extend beyond the content

Fix #15