title: How to fit a Scene2d window to it's content ? ( Libgdx )
body: <p>All is on the title , I've tried to follow step by step the example provided by Nathan Sweet ( Libgdx main contributor ) to create a window in Scene2d but I come up with an unexpected result :</p>
  
  <p><img src="https://i.stack.imgur.com/VNgVt.jpg" alt="enter image description here"></p>
  
  <p>Like you can see the text gose out the window , here is my code for the window : </p>
  
  <pre><code>Window window = new Window("The new Window commIng up", skin_deff);
                 window.setPosition(400, 200);    
                 window.pack();
  
  
          // putting  stuff together
  
                  table.debug();
                  table.add(heading).colspan(3).expandX().spaceBottom(50).row();;
                  table.add(scrollPane).uniformX().expandY().top().left();
                  table.add(window).padLeft(30);
                  // table.add(play).uniformX();
                  table.add(back).uniformX().bottom().right().padLeft(550);
                  stage.addActor(table);
  </code></pre>
  
  <p>This is the example of Nathan Sweet that I'm trying to follow : </p>
  
  <p><img src="https://i.stack.imgur.com/gosSv.jpg" alt="enter image description here"></p>
  
  <p>Code : </p>
  
  <pre><code>label.setPosition(100, 200);
          stage.addActor(label);
  
          Window window = new Window("[RED]Multicolor Bla Bla Bla[GREEN] Title", skin);
          window.setPosition(400, 200);
          window.pack();
          stage.addActor(window);
  </code></pre>