Created
May 11, 2012 00:50
-
-
Save egomez99/2656844 to your computer and use it in GitHub Desktop.
OnForce layout issue - 2.0.1.GA2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//contacts.js | |
//OF.mobile.UI.update_contacts = function(window){ | |
//window.subHeader.descriptionView.layout = 'vertical'; | |
var win = Ti.UI.createWindow({ | |
layout : 'vertical' | |
}); | |
//ui/window.js | |
// this.scrollView = OF.mobile.UI.createScrollView({ | |
var scrollView = Ti.UI.createScrollView({ | |
top : 0,//HEADER_HEIGHT, | |
//addToView : this.window, | |
//window : this.window | |
}); | |
//ui/window.js | |
//this.innerView = OF.mobile.UI.createSimpleView({ | |
var innerView = Ti.UI.createView({ | |
borderRadius : 0, | |
top : 0, | |
layout : 'vertical', | |
height : Ti.UI.SIZE, //'auto',//DISPLAY_HEIGHT - HEADER_HEIGHT, | |
bottom : 5, | |
//width : DISPLAY_WIDTH, | |
//addToView : !this.scroll ? this.window : this.scrollView | |
}); | |
scrollView.add(innerView); | |
win.add(scrollView); | |
/* | |
* * you can pass the type in the row to get a different view | |
* default will be the triple view | |
* left and right labels take OF.mobile.UI.Label config elements | |
if (!OF.isEmpty(wo_details_obj.data.details.support.phone)) { | |
var name = ellipsizeMe(wo_details_obj.data.details.support.name, MAX_STR_LENGTH); | |
new OF.mobile.UI.ActionListCall({ | |
window : window.window, | |
addToView : innerView, | |
rows : [new OF.mobile.UI.ActionListRow({ | |
type : OF.mobile.UI.ActionListRow.typeCall, | |
leftLabel : { | |
top : TOP, | |
text : 'BUYER', | |
left : null | |
}, | |
rightLabel : { | |
text : 'Call ' + name, | |
right : null | |
}, | |
phone : { | |
number : wo_details_obj.data.details.support.phone, | |
ext : wo_details_obj.data.details.support.phoneext | |
}, | |
message : wo_details_obj.data.details.support.name | |
})] | |
}); | |
} | |
*/ | |
var views = []; | |
//styles.js 213:231 | |
views[0] = Ti.UI.createLabel({ | |
top : 0, | |
text : 'BUYER', | |
text : 'Left label', | |
height : Ti.UI.SIZE, //'auto', | |
fontWeight : 'bold', | |
fontSize : 12, | |
textAlign : 'right', | |
right : 5, | |
top : 0, | |
bottom : 0 | |
}); | |
views[1] = Ti.UI.createLabel({ | |
text : 'Right label', | |
fontWeight : 'normal', | |
color : '#808080', | |
left : 4, | |
fontSize : 17, | |
top : 0, | |
bottom : 0, | |
height : Ti.UI.SIZE,//'auto', | |
}); | |
var data = []; | |
var row = Ti.UI.createTableViewRow({ | |
children: views | |
}); | |
data.push(row); | |
var table = Ti.UI.createTableView({ | |
data: data | |
}); | |
innerView.add(table); | |
win.open(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment