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
Post a Comment