-
1 May 2012 12:41 AM #1
setAutoMaximize not working in ST2
setAutoMaximize not working in ST2
Hi,
When doing:
I will get af error:Code:Ext.Viewport.setAutoMaximize(true)
sencha-touch-all-debug.js:77485 TypeError: 'undefined' is not a function (evaluating 'fn.call(scope)')
This works:
Code:(Ext.Viewport.getAutoMaximize()
-
2 May 2012 8:31 AM #2
Seems like your code paste was incomplete. But, is there a reason you're trying to set this config with manual code, rather than with the Viewport config within the app?
Select Application node --> find "Viewport Config" in the config pane --> click "+" then select the Viewport node and you can configure autoMaximize there.
Doing it this way allows ST2 to apply the autoMaximize config at the proper time in the application lifecycle.Jason Johnston
@lojjic
Sencha Architect Development Team
-
2 May 2012 8:57 AM #3
Correct.
I normally do that.Select Application node --> find "Viewport Config" in the config pane --> click "+" then select the Viewport node and you can configure autoMaximize there.
The "problem" is that I get some errors because of autoMaximize:true when calling window.location.relead() or window.location = "index.html". From a button in the application.
So I thought I could set it manually to get by the exception. Must it be set from the start of the application?
-
2 May 2012 9:02 AM #4
Ah interesting. I think the Sencha Touch team would be interested to hear about the issue you're having with the recommended approach; it might indicate a bug in ST2, or they may be aware of it and have a recommended way of getting around it. Since this isn't Architect-specific you'd have a much better chance of getting useful answers by posting in the ST2 forums.
Jason Johnston
@lojjic
Sencha Architect Development Team
-
29 May 2012 10:52 PM #5
Hi,
I really need to override this property like here:
http://www.sencha.com/forum/showthre...Maximize-false
Because I want it to be true on iOS and not Android because it breaks the application.
But I can create a override in Architect, so how do I do this?
-
30 May 2012 6:29 AM #6
My temp fix is to set it in init viewport
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote