PDA

View Full Version : MessageBox (Ext.Msg) bug - property druggable



michelerosica
21 Nov 2013, 5:58 AM
The property druggable, has a bug.



//@example
Ext.Msg.show({
title:'Save Changes?',
msg: 'You are closing a tab that has unsaved changes. Would you like to save your changes?',
buttons: Ext.Msg.YESNOCANCEL,
icon: Ext.Msg.QUESTION,
draggable: false // default: true
});

Tim Toady
21 Nov 2013, 8:29 AM
The show (http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.window.MessageBox-method-show)method clearly identifies what properties may be used and draggable is not one of them. I can see how a config property on a singleton can be misleading though. You can create an instance of the class Ext.window.Messagebox with whichever configs you desire or make an override.

michelerosica
22 Nov 2013, 1:05 AM
So just for the property druggable should override the method?