Adjust the node size according to the width of the window.