Fix invalidateSize being called too early
Fix invalidateSize being called too early

This works, but the code needs to be refactored to
support more 'screens'/'panels' more easily. Fixes #1
[@wwared, @brunoendo]

biciguia/biciguia-frontend,biciguia/biciguia-frontend