-
12 Dec 2011 1:35 PM #1
Orientation change in ChildBrowser doesn't repaint app
Orientation change in ChildBrowser doesn't repaint app
I'm using PhoneGap's ChildBrowser plugin and Touch 1.x to open a .pdf on iPad without really leaving my app. When the user changes orientation and presses 'done', returning to the app, the app does not repaint itself.
How do I convince the app to repaint itself with its new size? Can I just send a simulated 'orientationchange' event? Ext.repaint(); and Panel.doLayout(); have not worked.
-
13 Dec 2011 8:17 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,641
- Vote Rating
- 434
Does the orientation events fire?
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.
-
13 Dec 2011 8:34 AM #3
The orientation event does not fire. I solved the problem by setting
(this function is called when the user returns from the child browser).Code:window.plugins.childBrowser.onClose = function() { viewport.setSize(window.innerWidth, window.innerHeight); };Last edited by dholth; 13 Dec 2011 at 8:34 AM. Reason: fromat
-
13 Dec 2011 10:15 AM #4
I may have spoke too soon. Sometimes this works, sometimes it doesn't.


Reply With Quote