특정 종류의 레이아웃을 얻으려고합니다. 지금까지의 노력은 fiddle example에서 미리 볼 수 있습니다.컨테이너가 고정 된 위치이지만 가로 스크롤에서만 사용됨
기본적으로 빨간색 테두리 컨테이너가있는 왼쪽 컨테이너 (fixedContainer
)를 고정 위치로 만들고 가로로 스크롤 할 때 완전히 보이게해야합니다. 그러나 수직으로 스크롤 할 때 컨테이너의 나머지 부분과 함께 정상적으로 스크롤해야합니다.
현재 코드 :
Ext.create('Ext.window.Window', {
title: 'Hello',
height: 500,
width: 700,
layout:'vbox',
scrollable:true,
items:[{
xtype:'container',
reference:'mainContainer',
layout:{
type:'hbox'
},
margin:10,
items:[{
xtype:'container',
reference:'fixedContainer',
style:'position:relative;',
defaults:{
style:'border: 1px solid red;',
left:100,
width:200,
height:120,
bodyPadding:10
},
items:[{
html:'panel1'
},{
html:'panel2'
},{
html:'panel3'
},{
html:'panel4'
}]
},{
xtype:'container',
reference:'scrollContainer',
defaults:{
border:true,
width:700,
height:120,
bodyPadding:10
},
items:[{
html:'panel1'
},{
html:'panel2'
},{
html:'panel3'
},{
html:'panel4'
}]
}]
}]
}).show();
"하지만 수직으로 스크롤하면 나머지 컨테이너로 정상적으로 스크롤해야합니다." 이것은 수직으로 스크롤하지 않습니다. –
맞습니다. 제 편집 내용을 확인할 수 있습니다. – NAmorim
죄송합니다. 답변을 수락 할 수 없으며, 수평 바를 항상 표시해야합니다. 그래도 고마워. – bullettrain