javascript - Titanium Desktop - Get Menubar icon Position -


i trying create app main window shown when menubar icon clicked. have create menubar icon can't figure out how position window underneath it. there way x position?

this javascript menubar icon:

var win = titanium.ui.getcurrentwindow();  var tray = titanium.ui.addtray(     "app://images/menubar.png",     function(){ win.show(); } ); 

this shows window when menubar icon clicked, shows in center of screen.


Comments

Popular posts from this blog

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -