mirror of https://github.com/espruino/BangleApps
promenu: options.scroll support
parent
927102ab96
commit
c0f4a195db
|
@ -28,7 +28,9 @@ E.showMenu = function(items) {
|
||||||
}
|
}
|
||||||
if (options) menuItems.splice(menuItems.indexOf(""),1);
|
if (options) menuItems.splice(menuItems.indexOf(""),1);
|
||||||
options.fontHeight = options.fontHeight||25;
|
options.fontHeight = options.fontHeight||25;
|
||||||
if (options.selected === undefined)
|
if (options.scroll)
|
||||||
|
options.selected = options.scroll;
|
||||||
|
else if (options.selected === undefined)
|
||||||
options.selected = 0;
|
options.selected = 0;
|
||||||
|
|
||||||
var ar = Bangle.appRect;
|
var ar = Bangle.appRect;
|
||||||
|
|
Loading…
Reference in New Issue