-
29 Feb 2012 7:04 AM #1
[4.1.0 b2,3] Window button problem when window is not resizeable
[4.1.0 b2,3] Window button problem when window is not resizeable
Ext version tested:
- Ext 4.1.0b2, b3, rc1(nightly 27 feb, 28 feb)
- IE9
- FF10
- No DOCTYPE specified
Test Case:
app.js
Login.js [controller]Code:Ext.application({ name: 'IGM', controllers:[ "Login" ], launch: function() { loginWindow = Ext.create('IGM.view.login.LoginWindow', {}); loginWindow.show(); } });LoginWindow.js [view]Code:Ext.define('IGM.controller.Login', { extend: 'Ext.app.Controller', views: ['login.LoginWindow'] });Code:Ext.define('IGM.view.login.LoginWindow', { extend: 'Ext.window.Window', //Comment out the line below to correct the problem resizable: false, width:350, height:150, items: [ new Ext.form.field.Text({ fieldLabel:'Test' }) ], buttons:[ { text:'Login', handler:function(){ } } ] });
-
29 Feb 2012 12:42 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 436
With IE9, the Login button is always shown with your code.
One thing I do want to note is you shouldn't create a text field like that in a class definition. This is much better:
Code:Ext.define('IGM.view.login.LoginWindow', { extend : 'Ext.window.Window', //Comment out the line below to correct the problem resizable : false, width : 350, height : 150, items : [ { xtype : 'textfield', fieldLabel : 'Test' } ], buttons : [ { text : 'Login' } ] });Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
1 Mar 2012 5:24 AM #3
Thanks for the advice, but I've given you my exact code and in FF10 and IE9 the button displays for a brief instant and then disappears. Oh well.
Looks like we can't reproduce the issue or there's a problem in the test case provided.


Reply With Quote