2012-05-09 12 views
0

3つのボタンがあるツールバーを含むパネルを使用しています。ボタンにアニメーション効果が表示されない

このパネルは2つの差分ファイルで読み込まれます。

最初にロードされたファイルには、ボタンが押されたときやリリースされたときに適切な勾配効果が表示されますが、他のパネルでは何も表示されません。ボタンはまだ機能しますが、スタイルはありません。

他のファイルで上書きされていますか?

私のパネルには、次のとおりです。

config:{ 
     navigationBar: { 
      hidden:'true' 

     }, 
     items:[ 
      { 
       xtype:'toolbar', 
       layout:'hbox', 
       height:70, 
       width:310, 
       activeItem:2, 
       items:[ 
        { 
         xtype:'button', 
         iconCls:'note_black', 
         iconAlign:'top', 
         text:'Workitems', 
         iconMask:true, 
         ui:'normal', 
         id:'workitem', 
         // enableToggle:true, 
         enabled:true, 
         disabled:false, 
         top:5, 
         height:60, 
         handler:function() { 
         // Ext.getCmp('workitem').setUi('toggle'); 
         // Ext.getCmp('workitem').toggle(true,true); 
          //Ext.getCmp('workitem').toggle(false,true); 
      //    Ext.getCmp('workitem').setPressed(0); 
          //Ext.getCmp('workitem').addCls('button_pressed'); 
         } 

        }, 
        { 
         xtype:'button', 
         iconCls:'inbox2', 
         iconAlign:'top', 
         text:'Inbox Queue', 
         iconMask:true, 
         ui:'normal', 
         id:'inbox', 
         top:5, 
         height:60, 
         enabled:true, 
         disabled:false, 
         left:93, 
         handler:function() { 

         } 

        }, 
        { 
         xtype:'button', 
         iconCls:'doc_drawer', 
         iconAlign:'top', 
         text:'File Cabinet', 
         enabled:true, 
         disabled:false, 
         iconMask:true, 
         ui:'normal', 
         id:'filecabinet', 
         top:5, 
         height:60, 
         left:200, 
         handler:function() { 
         } 

        }] 
      }] 
    } 

と事前に

{ 
     xtype:'bottomBarPanel' 
}, 

感謝を述べている同じコードで2つの差分ファイルでそれを読み込むメートル。

答えて

0

私は2つの異なる場所で同じパネルを使用しようとしていたからです。あなたはそれを行うことはできません。だから、私は2つのファイルのための別々のパネルを作成し、現在は正常に動作しています。

関連する問題