PDA

View Full Version : [NOREPRO] [4.0.2a] me.tools.close is undefined



saprot
30 Sep 2011, 5:25 AM
Hi!

I would like to have all MessageBox windows without close button on the top right, so in Ext 3.x I did something like that:


Ext.window.MessageBox.prototype.closable = false;

However, in Ext 4.0.2a, I get following error:


me.tools.close is undefined

and that error is in line:



if (cfg.closable === false) { me.tools.close.hide(); } else { me.tools.close.show(); }

in ext-all.

alberto.marabini
30 Sep 2011, 10:07 AM
Hi @saprot,

thanks for submitting your report.
Please would you mind filling out the bug report template (http://www.sencha.com/forum/showthread.php?138165-How-to-report-a-bug) and provide a test case?

Thanks a lot!!!!

saprot
30 Sep 2011, 1:07 PM
REQUIRED INFORMATION
Ext version tested:

Ext 4.0.2a
Browser versions tested against:

Firefox 7.0 with Firebug
Chrome 14
Description:

me.tools.close is undefined when setting Ext.window.MessageBox.prototype.closable = false;
Steps to reproduce the problem:

add Ext.window.MessageBox.prototype.closable = false; somewhere before showing a Ext.window.MessageBox
create a Ext.window.MessageBox
The result that was expected:

Ext.window.MessageBox with "close" tool not shown. It works in Ext 3.x
The result that occurs instead:

Firebug produces an error me.tools.show is undefined and MessageBox is not shown
Test Case:
Ext.window.MessageBox.prototype.closable = false;

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
});

alberto.marabini
30 Sep 2011, 2:27 PM
Thanks a lot for providing the bug infos in the template!
I've verified that is an actual bug and i've filed in our system.

evant
30 Sep 2011, 3:44 PM
Confirmed in 4.0.2a, however this issue has already been resolved in a recent patch release.