2013-04-15 97 views
0

我使用extjs 4,我想創建可摺疊的右側面板,但不是與主容器一樣高。我嘗試了bodyStyle:'background:transparent',但它不起作用。熙是我得到: enter image description hereExtjs4可拆卸面板高度

{ xtype:'panel', 
       id: 'app-options', 
       region: 'east', 
       bodyStyle: 'background:transparent', 
       cls:'my-panel', 
       frame:false, 
       boder:false, 
       width: 200, 
       collapsible: true, 

       layout:{type:'border' 
       }, 
       items: [{ 
         xtype:'panel', 
         region: 'north', 
         title: 'Test', 
         height:200 

        } 
        ] 
       } 

我怎樣才能讓藍色區域透明?我需要顯示地圖。

回答

0

我認爲你得到的是當前代碼的js錯誤,或者你沒有分享完整的代碼。 因爲,你張貼在這裏的代碼:

layout:{type:'border' 
       }, 
       items: [{ 
         xtype:'panel', 
         region: 'north', 
         title: 'Test', 
         height:200 

        } 
        ] 

它有沒有在所有中心區域的邊界佈局! 所以按照邊界佈局中心區域是必須的。而且我看不到您要在東面板上加載地圖的代碼。