title: StretchViewPort is not working properly
body: <p>I am using Virtual Viewport <strong>Size 855*540</strong></p>
  
  <p>My code is like</p>
  
  <p>In gamePlay Screen</p>
  
  <pre><code> public void show() { 
      gameStage=new GameStage();
     //Constants.VIEWPORT_WIDTH=855;    Constants.VIEWPORT_HEIGHT=540;
      gameStage.setViewport(new FillViewport(Constants.VIEWPORT_WIDTH, Constants.VIEWPORT_HEIGHT));
      hudStage=new HudStage();
      hudStage.setViewport(new StretchViewport(Constants.VIEWPORT_WIDTH, Constants.VIEWPORT_HEIGHT));
  
  }
  
   public void resize(int width, int height) {    
      Gdx.app.log("Gameplay", "in gameplay resize");
      gameStage.getViewport().update(width, height, false);
      hudStage.getViewport().update(width, height, false);            
  }
  </code></pre>
  
  <p>In HUdStage</p>
  
  <pre><code> public  HudStage(GameStage controller) {
      //virtual size
      int width=855;
      int height=540;
  
      Drawable imageUpAK=new TextureRegionDrawable(atlas.findRegion("ak_IconEnable"));
  
      ImageButton topButton= new ImageButton(imageUpAK, imageUpAK);
      topButton.setPosition(0,height*.8f);
      addActor(topButton);
  
      ImageButton buttonBottom= new ImageButton(imageUpAK, imageUpAK);    
      buttonBottom.setPosition(0,0);
      addActor(buttonBottom); 
  
      Label resolution=new Label(Gdx.graphics.getWidth()+"x"+Gdx.graphics.getHeight(), style);
      resolution.setAlignment(Align.right);
      resolution.setPosition(0,height*.45f);
      addActor(resolution);
   }
  </code></pre>
  
  <p>The response i get in return is shown in image on different resolution.</p>
  
  <p><strong>My Question:-</strong> Am i getting desired result?if not what i am doing wrong.If right what should i do to avoid cutting of cutting elements.</p>
  
  <p>I want the position of hud element should be like <strong>My Virtual Scrrensize i.e (*855X580)</strong> in other scrren resolution.</p>
  
  <p><img src="https://i.stack.imgur.com/qIdZ9.png" alt="enter image description here"></p>
  
  <p>Thanks in advance.</p>