fixed crash for relative layout
test for fix
Merge pull request #7 from jhmegorei/master

Fix for crash when using relative dimensions and relative positioning