[#916] Center on graph is not working on flat graph

Bugfix