Titanium Community Questions & Answer Archive

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

Fullscreen Bug?

I can't figure it out. My root window is myprofile.js. It is not fullscreen. When I make a button which links back to it, it always makes it fullscreen.

Here is an example of the button event:

nextbutton.addEventListener('click',function(e)
{
window = Titanium.UI.createWindow({url:'myprofile.js',title:'My Profile'});
window.open({fullscreen:false});
});

I can't figure it out and I'm pulling my hair out. I know it must be a simple thing Im missing but I need help. Please. =)

Original profile: http://www.nealkraus.com/original.png

Fullscreen: http://www.nealkraus.com/fullscreen.png

The fullscreen image is showing the bottom of the previous page, which is a fullscreen page.

— asked April 25th 2010 by Neal Kraus
  • fullscreen
  • iphone
  • root
  • window
0 Comments

4 Answers

  • Have you tried this?

    nextbutton.addEventListener('click',function(e) { 
      window = Titanium.UI.createWindow({url:'myprofile.js', title:'My Profile'});
      Titanium.UI.currentTab.open(window, {animated:true});
    });
    
    — answered April 25th 2010 by Raul Riera
    permalink
    0 Comments
  • This is what I've tried along these lines:

            var win1 = Titanium.UI.createWindow({url:'myprofile.js',title:'My Profile'});                
            Titanium.UI.currentTab.open(win1, {animated:true});    
        });
    

    When that code is in, the button doesn't do anything.
    I appreciate the prompt reply. Means a lot. Thanks again.

    — answered April 25th 2010 by Neal Kraus
    permalink
    0 Comments
  • I'm still unable to figure it out. Here is the pastie for the page that has the button:

    http://pastie.org/935494

    What am I doing wrong?

    I've got to get this figured out. Programming isn't my strong-suit apparently?

    =)

    — answered April 26th 2010 by Neal Kraus
    permalink
    0 Comments
  • I figured it out. I got the idea from: https://developer.appcelerator.com/question/9301/how-to-show-the-root-window-after-opening-multiple-windows.

    I needed to add a win.close(); for the window that was attached to the button's eventlistener.

    — answered April 26th 2010 by Neal Kraus
    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.