开发者

Adjust width of Ext.Msg in Sencha touch

I am trying to develop a mobile app using Sencha touch .I need to show a custom message box with 4 buttons.But i cannot change the with of message box,because of that only 3 buttons are visible in the message.please anyone help me to a开发者_开发知识库djust the width of Message Box.Following is the code i am using

Ext.Msg.show({ title : '', msg : '', width : 300, height : 300,

     buttons : [{
     itemId : 'A',
     text : 'A',
     ui : 'action',
     }, {
     itemId : 'B',
     text : 'B',
     ui : 'action'
     }, {
     itemId : 'C',
     text : 'C',
     ui : 'action'
     }, {
     itemId : 'D',
     text : 'D',
     ui : 'action'
     }, {
     itemId : 'E',
     text : 'E',
     ui : 'action'
     }, {
     itemId : 'F',
     text : 'F',
     ui : 'action'
     }]
     });

Thanks in advance .....


call doComponentLayout() after showing. i.e. Ext.Msg.show(confObj).doComponentLayout();

Update

http://jsfiddle.net/p5K4q/25/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜