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

fromFactor

$
0
0

I have a login button and i had written tss for it

"#loginbutton[platform=ios formFactor=handheld]":{
 
    top:"49%",
    width:"90%",
    backgroundColor:'#2365C2',
    color:"#fff",
    borderRadius:5,
    font:{
        fontSize: "13sp",
        fontWeight:"bold"
    },
    height:"6%",
    style:Ti.UI.iPhone.SystemButtonStyle.PLAIN
},
"#loginbutton[platform=ios formFactor=tablet]":{
 
    top:"49%",
    width:"90%",
    backgroundColor:'#2365C2',
    color:"#fff",
    borderRadius:5,
    font:{
        fontSize: "25sp",
        fontWeight:"bold"
    },
    height:"6%",
    style:Ti.UI.iPhone.SystemButtonStyle.PLAIN
}
but i'm getting error as
undefined is not an object(evaluating Alloy.isHandHeld) and for ipad undefined is not an object(evaluating Alloy.isTablet)
kindly suggest me how to use form factor for handheld device and tablet.I have problem with my fonts so using form Factor

Viewing all articles
Browse latest Browse all 8068

Latest Images

Trending Articles



Latest Images

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