2014-01-23 57 views
1

擡頭在論壇中查找類似問題。當溢出組件中的按鈕組溢出時,溢出按鈕不能工作兩次

Overflow button does not work twice when a button group is among the components in the overflow.

是這個固定了嗎?

我的工具欄的代碼片段看起來是這樣的:

  { 
       id: 'mypanel', 
       xtype: 'panel', 
       autoScroll: true, 
       region: 'center', 
       layout: 'border', 
       dockedItems:[{ 
        xtype: 'toolbar', 
        dock: 'top', 
        enableOverflow: true, 
        items:[ 
         { 

          xtype: 'buttongroup', 
          region: 'north', 
          // minHeight: 50, 
          //autoScroll: true, 
          items: getButtons4() 
         }, 
         { 

          xtype: 'buttongroup', 
          region: 'north', 
          // minHeight: 70, 
          //autoScroll: true, 
          items: getButtons3() 
         }, 
         { 

          xtype: 'buttongroup', 
          region: 'north', 
          //minHeight: 70, 
          //autoScroll: true, 
          items: getButtons1() 
         }, 
         { 

          xtype: 'buttongroup', 
          region: 'north', 
          //minHeight: 70, 
          //autoScroll: true, 
          items: getButtons2() 
         }, 
         { 

          xtype: 'buttongroup', 
          region: 'north', 
          title: 'Others', 
          //minHeight: 70, 
          //autoScroll: true, 
          items: getOtherButtons() 
         } 
        ] 
       }], 
       items: [ 
        { 
         xtype: 'tabpanel', 
         id: 'mytabpanel', 
         activeTab: 0, 
         layout: 'fit', 
         region: 'center', 
         disabled: 'true', 
         items:[ 
          { 

           xtype: 'gridpanel', 
           height : '80%', 
           width : '100%' 
          }, 
          { 

           xtype: 'gridpanel', 
           height : '80%', 
           width : '100%' 
          } 
         ] 
        } 
       ] 
      } 

回答

1

取代你的下面的代碼:

enableOverflow: true

我下面的代碼:

layout: {overflowHandler: 'Menu'}