[BUG #7703] Flush all queues to make sure the widget bounds are computed