title: SetSize() not working properly : selenium + java
body: <p>i'm trying to set my browser size through the following code by setting it to (411,850) but its setting it to (513,850) for windows only.:</p>
  
  <p>width is 513 instead of 411 ,only for windows.</p>
  
  <p>Note : Im following this order in my code </p>
  
  <pre><code>setSize(driver,411,850);
  driver.get(url);
  </code></pre>
  
  <pre><code>public void setSize(int width, int height) {
      try {
          System.out.println("Before setSize : "+driver.manage().window().getSize().width+","+driver.manage().window().getSize().height);
          System.out.println("calling setSize: w=" + width + ",h=" + height);
          Dimension d = new Dimension(width, height);
          driver.manage().window().setSize(d);
          System.out.println("After setSize : "+driver.manage().window().getSize().width+","+driver.manage().window().getSize().height);
  
      } 
      catch (Exception e)
      {
          System.out.println("ERROR: while setSize()");
      }
  }
  </code></pre>
  
  <p>OUTPUT FOR WINDOWS :</p>
  
  <pre><code>Before setSize : 1050,840
  calling setSize: w=411,h=850
  After setSize : 513,850
  
  </code></pre>
  
  <p>OUTPUT FOR MAC-OS :</p>
  
  <pre><code>Before setSize : 1200,1005
  calling setSize: w=411,h=850
  After setSize : 411,850
  
  </code></pre>