When working with TideSDK windows, you get to control their position within the screen. However, I can’t find any way to retrieve the screen’s size nor a way to center the window.
Is there a way to accomplish that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can access the user’s screen size with
window.screen.widthandwindow.screen.height. You can use those to center a window:Note that the
windowobject here is not an instance ofTi.UI.UserWindowbut the usual browserwindowobject.