Fixed #5025 - Resizable: Elements that have inner resizable elements do not work

Added unit tests which prove that the issue exists, and is fixed by my change.