Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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:
shot1

While the video is open:
shot2

After I exit the video:
shot3

It doesn't do it every time. It seems to be very random. Anyone know what this is happening?

— asked November 4th 2010 by Ronnie Swietek
  • bar
  • orientation
  • tab
  • title
0 Comments

5 Answers

  • A little code to see what you're doing there ?

    — answered November 4th 2010 by Dan Tamas
    permalink
    0 Comments
  • 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();
    });
    
    — answered November 4th 2010 by Ronnie Swietek
    permalink
    0 Comments
  • Try to set height and width of 'Tactical A 1' window to 100% , maybe something confuses it :)

    — answered November 4th 2010 by Dan Tamas
    permalink
    0 Comments
  • 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.

    — answered November 4th 2010 by Ronnie Swietek
    permalink
    0 Comments
  • Can anyone offer any other ideas?

    — answered November 5th 2010 by Ronnie Swietek
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.