Use actual width and height instead of measuredWidth and measuredHeight
Fixes #552
Merge pull request #571 from jonasfa/layout-fix

Fix deferred loading for complex measurements