Calculate workspace size based on the position of the farest-right and farest-low node