The network is centered on the window

Independently of the size of the window the network is centered on it