PDA

View Full Version : Bug with radiobutton layout?



marxan
15 Sep 2014, 1:52 AM
Hello, is there a bug with this layout?


{
xtype: 'radiogroup',
fieldLabel: 'Type',
columns: 2,
items: [{
boxLabel: 'Min',
name: 'type',
inputValue: 'MINIMUM',
checked: true
}, {
boxLabel: 'Max',
name: 'type',
inputValue: 'MAXIMUM'
}]
}

http://www.sencha.com/forum/image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANMAAAAnCAIAAAAaZuqBAAAFD0lEQVR4nO3aXU/bVhgH8FzsvpumTasmpH6BSbuZtFF6w812Q6WVSNVe1E7raDtx0YvRSaxI2zStjEGhJsEWalpSNkBtoMQEQ2AhBEKIk/gljmMcHIjzSgjhQ+wiGkJ5cbJBcrryWD8hQEbH53n+nJzA0eUPDwFoPB3yJwBnEyQPoAHJaxArSV7t6mvRdxS0d/aYLdQrPG5VkLxGmLPZiD+mZ61W1wYdCATW19dJkhwdHZ2YmKjruDifHMHxpdUNPhiUZVkQpRWnkyAIDMOQ1wSSV3e2+XmcT7o8PreXeTE7ixPE5NTUupfx+tkRHJ+hHPl8vh7j4nzS9Pgxw7IBhllaXrYtry4tL/sYngsKZguFDQ8f1GfcGumKLuR9esW4N/0Gg2HN4593uJs7f75wqb0JZ5sG1pr1t2w2m5/hMQxzbdC5fPnGaHxTu1lWkhzB8QAvujx+amGBstOLdrt9aWllZcWzucmFtgxGo5Ukc7kcqsroqs4BnMTNe/0Li4s+n69Zf+v8CPf+J1+819Zx7toDne61Dy5/xYckh8Nx2zCVzWaLG1Mtedr02DOHw+FjeMpOUxS14vF76ICPDdKMsEEHgqK05vF/6VLSmT1UlSlOXunnRx+Lpl1ppYQcH3fRSHEc98hkevM394VL+utdv35ESudu4IW6vVhwhsPhtm++T6VSxY3RlW9N0ZpXqTsXjRQfkv5addvt9jUPHeAEnudFSZbkbUGUGJaVZbnsuA1TU/I05l/pp0BBi75DluXbDyfeuGE433qt6cPLx39jfxx6pCaSbTe7T5K8ssUvjLvodK9u+FguGAqFtpWdWExVVVVRFC4oVBq3YSrGqNJ+omrywHEt+o5QWB4cGnq92348c1c+btXpdMaRESUa1UieRju0G9Gi7xBEybW2RtN0KLylRKOJRCKdTieTqZiqhiUpsq38X5NXdCHv8cup9fNON804V1ff/bqvqGLvtF4TpAjDBds7e049ee2dPU6nk2VZhmFC4a2YGk9n9rLZ/XQ6E1Pj0Vhi0+v97M5PL9E+T2OqGhMGlQw9fPj06dOQKD4ZG3v7066j2L11Z5ycm4vGEhOTk9jwcDa7X9wYzS1QpUYcfWm2UARBcEGBCwqCKCmKkkim0pm9RDKlxuNhSSIIwmyh9veLx22Y8jHS2LfBPu9fOcjnOwfGLdPTYUniBPHJ2Fj/wMCY2SyEwtFolFx0XPn2XrZc+0+YvPzhIYZhZgsliFIkEpFlORpLxNR4PB6XZfnZ8+d37xsODg4QVqam5JV9Va30UgvJK5LJZDAMM5lMXj+7FVF2d3e3t7cZlp2YnPyBSaVSqXzJH/M0ylh78vKHh9jwsMFodG3QkUgkkUwpirLp9RIEcfe+AXlZqkxPowSgdmo8PkM5fu/v78XHHwwO9uLjvfi4acq6s7NT13EP8nkrSV7/7pe2m90FV7v6zBYK7WpXUCZVsIbVQ0yNi6IoSJGCUFiud+wKcrlcOrOX+udKZ/YQ7u2Og+QBNCBVAA1IHkADkgfQgOQBNCB5AA1IHkADkgfQgOSdCWXPE6E9ZATJOxMgeQCN0uMFpWfhis5/1Pt/95C8M6Fq8kpv1r7nFB4JeVFAA1Q94VzLzaf8SMiLAhqglrP1lU5h1uuRkBcFNID2CedKp5NgzQMnVXvySt9kQPLAf1fL2fqjzFV6O3LKj4S8KOBsguQBNCB5AA3dnzMLADQerHkAjb8BcZ0Aqhtmg1EAAAAASUVORK5CYII=50355

As you can see Max is put under the radion button. It's the same with all radio button I create.
Is there a way to align it?

Thanks

josei
15 Sep 2014, 5:44 AM
Try with 'layout:'auto''



{
xtype: 'radiogroup',
fieldLabel: 'Type',

layout:'auto',

columns: 2,
items: [{
boxLabel: 'Min',
name: 'type',
inputValue: 'MINIMUM',
checked: true
}, {
boxLabel: 'Max',
name: 'type',
inputValue: 'MAXIMUM'
}]
}