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.
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}); });
- 
				
					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.
- 
				
					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? =) 
- 
				
					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.