PDA

View Full Version : MessageBox increase height of buttons



semaj
11 May 2011, 7:46 AM
Hello Ext Gurus,

Is there a way to increase height of buttons inside MessageBox?


Ext.Msg.show({
title:'Title',
msg: 'blahblah...',
buttons: Ext.MessageBox.OKCANCEL,
buttons: {ok: 'Confirm Approve', cancel:'Decline'},
fn: myHandler,
icon: Ext.MessageBox.QUESTION
});

Currently 'Confirm Approve' button is too small. I'm wondering if I can use scale:'medium' from Button.

Thanks

friend
12 May 2011, 6:33 AM
Ext.MessageBox is a convenience class, so you don't get many options for restyling.

An alternative would be to create an Ext.Window with a child message Ext.Panel and buttons config. Then you can easily override styling all you want.

semaj
12 May 2011, 7:39 AM
That is what I end up doing. Thank you friend!