title: How to make XTemplate work with TabPanel in Sencha Touch
body: <p>I've got my TabPanels generating as expected, however, if I try and inject an <code>XTemplate</code> into one of the panels, and then call <code>content.update(myArray);</code>, the result is that the panels don't move, the buttons don't work, and the template doesn't render.</p>
  
  <p>Can anyone tell me what I'm doing wrong?</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      Ext.setup({
          onReady: function () {
              var rootPanel,
                  videoPanel,
                  aboutPanel,
                  videoTpl,
                  bergman,
                  gray,
                  videosToShow
  
              bergman = { id: "23657322" };
              gray = { id: "23694183" };
              videosToShow = [bergman, gray];
  
              videoTpl = new Ext.XTemplate(
                  '&lt;tpl for="."&gt;',
                  '&lt;iframe src="http://player.vimeo.com/video/{id}?title=0&amp;amp;byline=0&amp;amp;portrait=0&amp;amp;color=80ceff" ',
                  'width="400" ',
                  'height="225" ',
                  'frameborder="0"&gt;',
                  '&lt;/iframe&gt;',
                  '&lt;/tpl&gt;'
              );
  
              videoPanel = {
                  title: "Videos",
                  tpl: videoTpl,
                  iconCls: "tv",
                  badgeText: "1",
                  dockedItems: [{ xtype: "toolbar", title: "Videos"}],
                  scroll: "vertical"
              };
  
              aboutPanel = {
                  title: "About",
                  html: "About RockPointe Church.",
                  iconCls: "more",
                  dockedItems: [{ xtype: "toolbar", title: "About"}],
                  scroll: "vertical"
              };
  
              rootPanel = new Ext.TabPanel({
                  fullscreen: true,
                  layout: 'card',
                  items: [videoPanel, aboutPanel],
                  tabBar: { dock: 'bottom' }
              });
  
              content.update(videosToShow);
          }
      });
  &lt;/script&gt;
  </code></pre>