2017-04-12 6 views
0

以下は、パネルをポップアップ表示する私のコードです。私はビデオを見ることができますが、上の近くにアイコンが表示されていません。パネル。 "closable:true"を提供しているので、閉じるアイコンが上部に表示されます。以下はパネルの上にクローズアイコンが表示されない(シンカタッチ2.4)

 Ext.Viewport.add(Ext.create('Ext.Panel', { 
      width: '500px', 
      left: '5%', 
      padding: 10, 
      top: '0%', 
      title: 'Foo', 
      floating: true, 
      closable : true, 
      layout: 'fit', 
      height: '380px', 
      html: ['<iframe frameBorder="0" scrolling="no" width = "480" height = "360" src = ""></iframe>'] 
    })); 

シオマネキリンク

fiddle.sencha.com/#view/editor &フィドル/ 1trn

+1

あなたは、このためにシオマネキに作成していただけます。このフィドラーで私にとってうまくいきます。 https://fiddle.sencha.com/#view/editor&fiddle/1trl – UDID

+0

Ext 5.1.3のバージョンであなたのコードを試してみましたが、正常に動作しているようです。また、Ext 6.0.2の私の終わりに取り組んでいます。問題を再現するフィドルを提供できますか? –

+0

@Harshit:私はSencha touch 2.4を使用しています。私はコントローラからこのパネルを見せています。 – Kalashir

答えて

1

煎茶タッチ・パネルは、ExtJSのような任意のclosable性質を持っていないされています。それを達成するために独自のボタンを作成する必要があります。

Ext.application({ 
 
    name: 'Fiddle', 
 

 
    launch: function() { 
 
    Ext.Viewport.add(Ext.create('Ext.Panel', { 
 
      width: '500px', 
 
      left: '5%', 
 
      padding: 10, 
 
      top: '0%', 
 
      title: 'Foo', 
 
      floating: true, 
 
      closable : true, 
 
      layout: 'fit', 
 
      height: '380px', 
 
      items:{ 
 
       xtype:'button', 
 
       right:0, 
 
       top:0, 
 
        ui: 'plain', 
 
       iconCls:'delete', 
 
       handler:function(button){ 
 
        button.up().destroy(); 
 
       } 
 
      }, 
 
      html: [''] 
 
}) 
 
); 
 

 
    } 
 
});
<link rel="stylesheet" href="https://cdn.sencha.com/touch/sencha-touch-2.4.2/resources/css/sencha-touch.css"><script type="text/javascript" src="https://cdn.sencha.com/touch/sencha-touch-2.4.2/sencha-touch-all-debug.js"></script>

+0

うん..これは動作しています。 –

+0

@HarshitShah このコードはChromeで問題なく動作していますが、Firefoxではiframeでビデオを開くことができません。具体的な理由は何ですか? – Kalashir

関連する問題