There’s no widget that can do it automatically but here’s a workaround.
Depending on where / when you use it, you may not need to Force Layout Prepass.