samedi 6 décembre 2014

titanium alloy set view visibility


Vote count:

0




i have a question on what the object.visible property in titanium alloy actually means.


in the profile.js controller file of the app there is a check if the user is logged in (state = null) and depending on this either (a) a "not logged in" a text label message (id = not_logged_in_message) shows up or (b) the profile data is visible.


now when the user is logged in, the text label (or rather its content) does not show up but it seems that the xml label tag (marked in darkred rectangle) is still there pushing everything lower.




if (state === null) {
$.topBar.setTitle(L('Please login'));
$.profile.visible=false;
$.not_logged_in_profile.visible=true;
} else {
$.topBar.setTitle(L('Profile'));
$.profile.visible=true;
$.not_logged_in_profile.visible=false;
get_profile();
}


thx for any suggestion!



asked 31 secs ago







titanium alloy set view visibility

Aucun commentaire:

Enregistrer un commentaire