title: Setting UI Button width and height in cocos2d js android application
body: <p>In my Cocos2d js android app i have a UI button as</p>
  
  <pre><code>    var button=new ccui.Button();
      button.loadTextures(res.play_png,res.play_png);
      button.setAnchorPoint(cc.p(0,0));
      button.x=size.width/2;
      button.y=size.height/2;
      this.addChild(button);
  </code></pre>
  
  <p>The button loads and i am able to set it at any position on the screen.</p>
  
  <p>But i am unable to change its width and height to specified number of pixels.
  I want something like</p>
  
  <pre><code>button.width=100;
  button.height=100;
  </code></pre>
  
  <p>I did not find any method to do that...</p>
  
  <p>Any help how to accomplish this would be greatful.</p>
  
  <p>Thanks.</p>
  
  <p>The buttons i use are options like play,how to play,share etc..</p>
  
  <p>So i have to position them in such a way that they dont overlap or get distorted for various screen resolutions...</p>
  
  <p>How can i use the setScale method in this context???</p>