2013-11-26 2 views
0

this과 같은 코드를 수정하고 일부 항목을 추가했습니다. 스크롤로 div를 가져오고 싶지만 Sencha에서는 작동하지 않습니다! 제안 하시겠습니까? 미리 감사드립니다.Sencha - div가 스크롤되지 않습니다

코드 :

/*global Ext:false */ 
Ext.application({ 
    launch: function() { 
     Ext.create('Ext.Container', { 
      fullscreen: true, 
      styleHtmlContent: true, 
      data: [{ 
       fname: 'Stratton', 
       lname: 'Sclavos', 
       role: 'Executive Chairman' 
      }, 
etc. ], 
       tpl: '<div style="overflow: auto; overflow-y: auto;"><tpl for="."><div><strong>{lname}</strong>, {fname} <em class="muted">({role})</em></div></tpl></div>' 
      }); // create() 
     } // launch 
    }); // application() 
+0

을 얘기하는 겁니까? 그렇다면 질문에 'sencha-touch'태그를 추가해야합니다. 그리고 다음 번에는 질문이나 제목에서도 명시 적으로 말해야합니다. – rixo

답변

3

추가 : 이것처럼

scrollable : { 
    direction  : 'vertical' 
}, 

: 당신이 센차 터치에 대한

/*global Ext:false */ 
Ext.application({ 
    launch: function() { 
     Ext.create('Ext.Container', { 
      fullscreen: true, 
      styleHtmlContent: true, 
      scrollable : { 
       direction  : 'vertical' 
      }, 
      data: [{ 
       fname: 'Stratton', 
       lname: 'Sclavos', 
       role: 'Executive Chairman' 
      }, 
etc. ], 
       tpl: '<div style="overflow: auto; overflow-y: auto;"><tpl for="."><div><strong>{lname}</strong>, {fname} <em class="muted">({role})</em></div></tpl></div>' 
      }); // create() 
     } // launch 
    }); // application() 
+0

감사! 그것은 작동합니다! –

+0

@ImanOdor 당신은 그 경우 대답을 수락 하시겠습니까? :) – benka

관련 문제