2012-05-31 3 views
0

Sencha Touch 2에서 둥근 목록보기를 원합니다.이를 위해 저는 ui : round 속성을 사용했습니다. 하지만 작동하지 않습니다. 이제 왼쪽면이 반올림됩니다. 하지만 오른쪽면에서는 제대로 나오지 않습니다. 그리고 그 둥근 테두리 안에 목록을 넣고 싶습니다.반올림 목록이 sencha touch 2에서 끝날 때까지 스크롤되지 않습니다.

Ext.define('MyApp.view.MyTabPanel', { 
extend: 'Ext.tab.Panel', 

config: { 
    layout: { 
     animation: 'fade', 
     type: 'card' 
    }, 
    items: [ 
     { 
      xtype: 'container', 
      draggable: true, 
      styleHtmlContent: true, 
      title: 'Artist', 
      items: [ 
       { 
        xtype: 'list', 
        height: 696, 
        ui: 'round', 
        width: 325, 
        modal: true, 
        itemTpl: [ 
         '{firstName}' 
        ], 
        store: 'name', 
        onItemDisclosure: true 
       } 
      ] 
     }, 
     { 
      xtype: 'container', 
      styleHtmlContent: true, 
      scrollable: true, 
      title: 'Albums', 
      items: [ 
       { 
        xtype: 'list', 
        height: 730, 
        ui: 'round', 
        width: 325, 
        modal: true, 
        itemTpl: [ 
         '{albumlist}' 
        ], 
        store: 'albumstore', 
        onItemDisclosure: true 
       } 
      ] 
     }, 
     { 
      xtype: 'container', 
      styleHtmlContent: true, 
      title: 'Playlist', 
      items: [ 
       { 
        xtype: 'list', 
        height: 700, 
        ui: 'round', 
        width: 325, 
        modal: true, 
        itemTpl: [ 
         '{playlist}' 
        ], 
        store: 'playliststore', 
        onItemDisclosure: true 
       } 
      ] 
     } 
    ], 
    tabBar: { 
     docked: 'top', 
     layout: { 
      align: 'center', 
      pack: 'center', 
      type: 'hbox' 
     } 
    } 
} 

}); 

가 지금은 둥근 목록에오고있다 :

여기 내 코드입니다 : 다음은 내 코드입니다. 하지만 스크롤이 제대로되지 않습니다. 목록의 끝까지 가지 않을 것입니다.

+0

당신은 SenchaFiddle 코드가 열리지 않습니다 :

그것은 아티스트 목록 잘 작동하고, 그것뿐만 아니라 다른 구성 요소에 적용 유사, 편집 후 소스 코드입니다. 다른 링크를 제공하십시오. – Swar

+0

당신의 senchafiddle 링크를 제공하십시오, 이전 하나가 깨졌습니다 –

+0

이 사람을보십시오 : http://www.senchafiddle.com/#eB8cw#Kv7ml –

답변

1

일부 중복 구성을 구성 요소에 포함 시켰습니다.

변경된 내용은 MyTabPanel.js (상당 부분)입니다.

Ext.define('MyApp.view.MyTabPanel', { 
    extend: 'Ext.tab.Panel', 

    config: { 
     layout: { 
      animation: 'fade', 
      type: 'card' 
     }, 
     items: [ 
      { 
       xtype: 'container', 
       layout: 'card', 
       //draggable: true, 
       styleHtmlContent: true, 
       title: 'Artist', 
       items: [ 
        { 
         xtype: 'list', 
         //height: 696, 
         ui: 'round', 
         //width: 325, 
         //modal: true, 
         itemTpl: [ 
          '{firstName}' 
         ], 
         store: 'name', 
         onItemDisclosure: true 
        } 
       ] 
      }, 
      { 
       xtype: 'container', 
       layout: 'card', 
       styleHtmlContent: true, 
       //scrollable: true, 
       title: 'Albums', 
       items: [ 
        { 
         xtype: 'list', 
         height: 730, 
         ui: 'round', 
         width: 325, 
         modal: true, 
         itemTpl: [ 
          '{albumlist}' 
         ], 
         store: 'albumstore', 
         onItemDisclosure: true 
        } 
       ] 
      }, 
      { 
       xtype: 'container', 
       layout: 'card', 
       styleHtmlContent: true, 
       title: 'Playlist', 
       items: [ 
        { 
         xtype: 'list', 
         //height: 700, 
         ui: 'round', 
         //width: 325, 
         //modal: true, 
         itemTpl: [ 
          '{playlist}' 
         ], 
         store: 'playliststore', 
         onItemDisclosure: true 
        } 
       ] 
      } 
     ], 
     tabBar: { 
      docked: 'top', 
      layout: { 
       align: 'center', 
       pack: 'center', 
       type: 'hbox' 
      } 
     } 
    } 

}); 
+0

고마워. 오고있다. onItemDisclosure를 추가 한 것처럼 true로 단추를 추가하고 있습니다. 그러나 단추 뒤에 작은 세로 선이나 패치가오고 있습니다. –

+0

질문을 스크린 샷으로 업데이트하십시오. –

관련 문제