자바스크립트/ExtJS
ExtJS - IE에서의 radiogroup 표시 오류
finkle
2009. 5. 19. 17:20
파이어폭스나 크롬에서는 문제없는데 IE에서만 발생하는 오류다. (아래 ComboBox에 이어 두번째 시리즈가 되었네)
일반 radio 컴포넌트를 사용할 경우는 문제없는데 radiogroup을 이용할 경우 아래와 같은 문제가 발생한다.
아래는 위 첨부파일에 해당하는 스크립트 코드다.
{
xtype : 'radiogroup',
fieldLabel : '첨부파일',
columns : [70, 100],
items : [
{boxLabel: '사용', name: 'useFile', inputValue: 'Y'},
{boxLabel: '미사용', name: 'useFile', inputValue: 'N'}
]
}
xtype : 'radiogroup',
fieldLabel : '첨부파일',
columns : [70, 100],
items : [
{boxLabel: '사용', name: 'useFile', inputValue: 'Y'},
{boxLabel: '미사용', name: 'useFile', inputValue: 'N'}
]
}
해결방안은 아래와 같다.
.x-form-radio-wrap { white-space: nowrap !important }
이제 제대로 나온다.