Allow to use width and height functions from setup.

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