Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Ideal size for a windows

$
0
0

which is the correct size for a window that must see correctly in all resolutions? like a lightbox my code is:

var popupWin = Ti.UI.createWindow({
        backgroundColor : 'transparent',
        navBarHidden : true,
        id : 'popupWin',
    });
    popupWin.addEventListener("open", function() {
        this.activity.actionBar.hide();
    });
    //Event to close the popup window
    popupWin.addEventListener('click', function(e){
        if(e.source.id != null){
            popupWin.close();
        }
    });
    Ti.API.warn("device width "+Ti.Platform.displayCaps.platformWidth);
    popupView = Ti.UI.createView({
        backgroundColor : '#fbfbfb',
        height : Ti.UI.SIZE,
        width:Ti.Platform.displayCaps.platformWidth/2,
        borderColor:'#009fcd',
        layout:'vertical',
        borderWidth:1,
    }),
is correct use platformWidth/2 ? the lightbox in tablet seen correctly but in phones of low and middle resolutions dont see fine.

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>