title: How to make a LibGDX application launch at the same resolution as the browser frame
body: <p>So I am attempting to make my game to where when launched (from browser), will take up all of the screen in the browser. In my HTML launcher code I have to feed it a width and a height, so I have been trying to access the width and height of the browser frame to initialize the game. So far I haven't gotten anything to work. These are the attempts I made to access the width and height in order.</p>
  
  <ol>
  <li><code>Gdx.graphics.getWidth()</code> and <code>Gdx.graphics.getHeight()</code></li>
  <li><code>Gdx.app.getGraphics().getWidth()</code> and <code>Gdx.app.getGraphics().getHeight()</code></li>
  <li><code>this.getGraphics().getWidth()</code> and <code>this.getGraphics().getHeight()</code></li>
  </ol>
  
  <p>All of these when used on this code: <code>return new GwtApplicationConfiguration(int width, int height);</code> display nothing.  Only when I hard-code a value in does it show anything, and hard-coding doesn't seem like a good way to go for a browser that could be any size.</p>
  
  <p>Alternatively, can these values be set as the resolution (like 1920x1080) and  then just use css to strech the game across the entire screen, or is this not the way to go?</p>
  
  <hr>
  
  <p>In the future I want to make the game resize when the browser re-sizes as well, so I will be adding the same code to the resize event.</p>