Allow to use width and height functions during setup.

During setup block current thread until sizes are set for apllet.