PDA

View Full Version : [CLOSED] Window Maximizable



brie
10 Nov 2011, 1:16 AM
REQUIRED INFORMATION




Ext version tested:

Ext 4.0.7


Browser versions tested against:

Chrome 15.0.874.106
FireFox 7.0.1


DOCTYPE tested against:

HTML5


Description:

Window Maximize button throws an error


Steps to reproduce the problem:

Create an Ext.window.Window with maximizable:true


The result that was expected:

The window maximizes when I hit the little icon on the top right


The result that occurs instead:

An error occurs. Firebug reports: me.tools.maximize is undefined


Test Case:




Ext.create('Ext.window.Window', {
title : 'Historie van',
layout: 'fit',
width: '90%',
height: '90%',
html: 'test',
maximizable: true,
constrain: true
});








HELPFUL INFORMATION


--
The little icon does show up in the top right corner. The problem occurs when I actually hit it.
--


Debugging already done:

I logged me.tools and noticed the keys of the object are numeric instead of the name of the actual tools


Operating System:

osx 10.7.2
Hi there,

I hava a window configured with maximizable:true.
But when I hit the little button on the right top corner, firebug throws this error:
me.tools.maximize is undefined

I guess this is a bug?

Kind regards,
Boris

evant
10 Nov 2011, 1:51 AM
Please see: http://www.sencha.com/forum/showthread.php?138165-How-to-report-a-bug

brie
10 Nov 2011, 3:32 AM
Hi Evant,
I updated my post

mitchellsimoens
10 Nov 2011, 4:36 AM
Further more, I tested this on 4.0.7 and it's working without a problem. Here is my full HTML page:



<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html>
<head>
<title>ExtJS 4 Test</title>

<link rel='stylesheet' type='text/css' href='http://extjs4/resources/css/ext-all.css' />
<script type='text/javascript' src='http://extjs4/ext-all-debug.js'></script>

<script type='text/javascript'>

Ext.onReady(function() {

Ext.create('Ext.window.Window', {
title : 'Historie van',
layout: 'fit',
width: '90%',
height: '90%',
html: 'test',
maximizable: true,
constrain: true
}).show();

});
</script>
</head>
<body>

</body>
</html>

mitchellsimoens
10 Nov 2011, 4:37 AM
I'm actually surprised the height and width worked when specifying them as a string like that.

brie
10 Nov 2011, 4:40 AM
Yikes when I try that snippet it works fine here too. So then I guess it will have something to do with my application.. Thanks anyways