engine.solve after window resize