fix #1032 viewport sizes updated when the first autoresizable element is registered
viewport sizes are now also updated when the first autoresizable element is registered, and not only when Layout singleton is loaded or a resize is done.