tab bar title getting pushed down (images inside)
I have an issue where I open a video and turn the phone to landscape, then exit the video and the tab bar title looks like its getting pushed down. Whats up with that?
Before I open the video:
While the video is open:
After I exit the video:
It doesn't do it every time. It seems to be very random. Anyone know what this is happening?
5 Answers
-
A little code to see what you're doing there ?
-
video.js
var win = Titanium.UI.currentWindow; var video = win.video; var activeMovie = Titanium.Media.createVideoPlayer({ contentURL: video, backgroundColor:'#000', fullscreen:true }); win.add(activeMovie); activeMovie.addEventListener('complete', function(e) { Ti.App.fireEvent("finishMovie"); win.orientationModes = [Titanium.UI.PORTRAIT]; }); activeMovie.addEventListener('fullscreen', function(e) { if (!e.entering) { activeMovie.stop(); win.orientationModes = [Titanium.UI.PORTRAIT]; } }); win.orientationModes = [ Titanium.UI.LANDSCAPE_LEFT, Titanium.UI.LANDSCAPE_RIGHT, Titanium.UI.PORTRAIT ]; activeMovie.play();
Then this is in my main.js file
//--> Event Listeners for start/finish of a movie Ti.App.addEventListener('finishMovie', function(e) { videoWin.close(); }); Ti.App.addEventListener('startMovie', function(e) { videoWin.video = e.video; videoWin.open(); });
-
Try to set height and width of 'Tactical A 1' window to 100% , maybe something confuses it :)
-
Well it seems to be doing it less frequently, but its still doing it. I tried adding width/height 100% to the window, the tab and tab group individually and all together.
-
Can anyone offer any other ideas?