GridLayout Horizontal ScrollBar functionality

I am using grid-layout and as per grid layout sample when we increase the horizontal space between the circular nodes then the nodes going out of canvas horizontally comes down as a part of the next row and other nodes adjust accordingly.

Now my question is : Is it possible to add vertical scroll bar and not let the nodes going into row below it, rather they take space expand themselves and get hidden(as they have expanded themselves more than the available horizontal space) in the same row.

Screenshot of gridlayout for reference