title: In NativeScript, how can I make a label automatically resize to fit content?
body: <p>I have two buttons with a label in between. When a button is tapped, the label text changes, but it appears to have a static width set to the width of the initial text. When the text gets longer, part of it is replaced with an ellipses.</p>
  
  <p>The code is pretty simple.</p>
  
  <pre><code>&lt;StackLayout orientation="horizontal"&gt;
      &lt;Button text="&lt;" tap="onPreviousLevel"&gt;&lt;/Button&gt;
      &lt;Label id="title" text="{{ name }}"&gt;&lt;/Label&gt;
      &lt;Button text="&gt;" tap="onNextLevel"&gt;&lt;/Button&gt;
  &lt;/StackLayout&gt;
  </code></pre>