Fixed a bug where the whole layout was repacked when changing the simulation dynamics.