Is there any way to get the screen to redraw when the mobile screen rotates? I've got some ellipsized labels that don't get any longer when you rotate the device. Ideas? Suggestions? I'm doing it wrong?
Just a simple label with left and right set. seeing this behavior on android.
Titanium 2.1
2 Answers
Accepted Answer
Hello Tyler,
See this....
// For Portrait & LandScap Resoluction ............. Titanium.Gesture.addEventListener('orientationchange', function(e) { switch (Titanium.Gesture.orientation) { // For LandScap....... case Titanium.UI.LANDSCAPE_LEFT: break; case Titanium.UI.LANDSCAPE_RIGHT: break; // For Portrait....... case Titanium.UI.PORTRAIT: break; case Titanium.UI.UPSIDE_PORTRAIT: break; } }); Titanium.Gesture.fireEvent('orientationchange');
you need to reload the current js file, just like reset the window's url or reopen the window, or try to set the view=null and re-include the releate js, something like that.
Your Answer
Think you can help? Login to answer this question!