t", "t1"),
          new go.TextBlock({ background: "cyan" })
            .bind("text", "t2")
        )
    );

diagram.model.nodeDataArray = [{ t1: "Top", t2: "Bottom"}];
</code></pre>
<script>goCode("third", 500, 140)</script>
<p>
  It is now clear that the TextBlocks are no bigger than they need to be to hold the text,
  and that the Panel is also no bigger than need be to hold the two TextBlocks.
</p>

<p>
  So you think that you just need to <a>GraphObject.stretch</a> the panel.
</p>
<pre class="lang-j