Added resize function to SimulationView.